Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
David: Permissions were the first guess - I chmoded 777 everything - still no go. On the server, there should be a second file created identical to the first with the results of the sed find and replace in it - the only thing that is created is a blank file. So, it is not permissions, nothing is

Re: [PHP] Exec command not working through php

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 23:17, lines prefixed by '>' were originally written by you. > "if I print out the exec line with the > dynamically generated paths, etc, then execute that through the > terminal, no > problem. " > >From the first email mean

Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
"if I print out the exec line with the dynamically generated paths, etc, then execute that through the terminal, no problem. " >From the first email meaning that I did just like you suggested already and it works in the terminal and contains exactly what I expect it to. But thanks :) On 7/15/03

Re: [PHP] Exec command not working through php

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 21:30, lines prefixed by '>' were originally written by you. > I have the following exec command in php: > exec("/bin/sed -f $GLOBALS[TMP_MAIL_DIR]"."cmdfile > $GLOBALS[TMP_MAIL_DIR]"."$mailid > > $GLOBALS[TMP_MAIL_DIR]"."$m

[PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
I have the following exec command in php: exec("/bin/sed -f $GLOBALS[TMP_MAIL_DIR]"."cmdfile $GLOBALS[TMP_MAIL_DIR]"."$mailid > $GLOBALS[TMP_MAIL_DIR]"."$mailid"."tmp",$results); Which does a search and replace using the sed command file: s/'/'/g s/"/"/g Now, executed command line, this works bea