[Exim] Can't get the output from the run command

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Boris Kovalenko
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Can't get the output from the run command
Hello!

    Why this code doesn't work?:
# Exim filter
testprint "${run{/usr/local/bin/mytest}{}}"


/usr/local/bin/mytest just writes "Hello, world!" to stdout:

#include <stdio.h>

int main(int argc, char **argv) {
    fprintf(stdout, "Hello, world!\n");
    return 0; <--- tried to use exit( 0 ); with same effect
}


/usr/sbin/sendmail -bf testfilter < testmessage
Output:
Testprint:

If I understand documentation:
    "If both strings are omitted, the result is the standard output     on
success, and nothing on failure."


My programm returns success so why I don't see "Hello, world!" message?
The $value variable is also empty.

P.S. exim 4.10-1 FreeBSD 4.6.2

--
Good Luck,
      Boris [Team OS/2]