[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exim and ETRN




>
>
> > Yes, Philip, you were right, it failed. Here what I got.
>
>Certainly seems that the lack of stdout confuses it.
>
> > I am running Linux on this machin using Exim RedHat 6.2, Kernel 2.2.16-3 on
> > an i686
>
>I've tried to set up a similar test, but of course it all works, both on
>Solaris 8 and RedHat 6.2. I probably haven't got the circumstances
>right, but just in case.... Please try this test on your system.


Murphy law... right ? ;-)


>1. Find yourself a throw away directory (e.g. /tmp) and go to it.
>
>2. Set up this file as, say, xyz.c
>
>#include <stdio.h>
>
>int main(void)
>{
>char *argv[4];
>
>close(0);
>close(1);
>close(2);
>
>argv[0] = "/tmp/zzz";
>argv[1] = NULL;
>
>execv(argv[0], argv);
>
>return 0;
>}
>
>3. Compile it by running "gcc xyz.c" - this will make an a.out file.
>
>4. Create /tmp/zzz containing this:
>
>#! /bin/sh
>
>( cat /tmp/zz.c; echo +++++ ) | cat >zzzz
>
>5. Make it into an executable script by "chmod a+x zzz".
>
>6. Run the a.out command


I change into the script zz.c by xyz.c

run and zzz instead of a.out

As you suspect, it works and I have the test program and the +++++

Well... thank you for all you assistance!

Have a nice week-end.

If you have any more ideas :)

Eric


>You should end up with a file called zzzz that contains the test
>program, with +++++ added on the end.
>
>I suspect this will work. I think there is something deeper going on
>here, but I am about to go home. Have a good weekend!


-----
This is the afnog mailing list, managed by Majordomo 1.94.4

To send a message to this list, e-mail afnog at afnog.org
To send a request to majordomo, e-mail majordomo at afnog.org and put
your request in the body of the message (i.e use "help" for help)

This list is maintained by owner-afnog at afnog.org