Marek Kilimajer wrote:
What prog is it anyway.
It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code.

If I put all the values in a file I can get the prog to work by doing:

#./prog < filename

It does not take any command line arguments. So I cannot just do "exec prog $args" since the "args" have to be typed in, one value per line (i.e hit return between values) and then on the last line ctrl-D ...

Can anyone think of a way I can get PHP to do this short of writing to a file and the doing "exec 'prog < file_I_wrote'"??

Jc


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to