In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I am in a bit of a pickle and would greatly appreciate any help. I
> have code which writes inputs to a txt file. These inputs are used as inputs
> to a c program. What I am trying to do is use the redirect command < to run
> the code from php. The command is:
> through php I use:
> system("./a.out<test.txt"); which does not work, (i.e the code is not
> also, rather strangly when I add another redirect:
> it does write the first couple of lines of the code output to the file.
> Can anyone see anything wrong? Any help would be great, thanks again
Have you ensured that a.out is executable by the user that your web
server runs as? Does the output in the second case give any clues?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]