On Sat, Dec 16, 2006 at 11:49:44PM -0800, Douglas Choma wrote: > #!/bin/sh > date >>/tmp/script.log > id >>/tmp/script.log > cat - >>/tmp/script.log > exit 0 > > When executed from an Exim transport, the script.log file contains > only the results from "id"...
My guess would be that PATH isn't what you think it is, for some reason. On my system, "date" and "cat" are in /bin and "id" is in /usr/bin, so if your PATH doesn't include /bin for some reason this would do it. You might also try removing all the ">>/tmp/script.log" bits, and instead adding "exec >>/tmp/script.log 2>&1" as the first line after #!/bin/sh -- Dave Evans Power Internet PGP key: http://powernet.co.uk/~davide/pgpkey
signature.asc
Description: Digital signature
-- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
