We are trying to encrypt a data file and have built a batch
file to do this. Calling the batch via CFEXECUTE just produces an
empty output file each time whereas calling the script from the
command line produces the correct data.
Coldfusion was running under a user that did not have the
capability to login to /bin/sh this for some reason means that it
can successfully create the output file output.1 but not actually
manage to put any content within it.
To resolve I edited /etc/passwd to change the nologin option
This enabled us to then login to "su - username" and then
execute "/bin/sh /tmp/shell.1" This produced the desired output to
the command line. On reloading the coldfusion page the output was
now generated within the page.
Giles> Thanks for your help the full command was actually
/bin/sh /tmp/shell.1 so I passed the shell command as an argument
rather than it being a complete file name.