Re: Unix command in PHP
| From: | Chris Aitken | Date: | Thu, 23 Nov 2000 22:52:05 +0000 |
| Subject: | Re: Unix command in PHP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26873@lists.php.net to get a copy of this message | ||
At 04:22 PM 23/11/2000, Teodor Cimpoesu wrote:
Hi Nicolas! On Thu, 23 Nov 2000, Nicolas Windpassinger - Sun wrote: hello all, does any body know how to do a UNIX command in a PHP script like:I have a bit of a question about this. I have used both these commands to execute a unix command/program and have run into a problem. Im trying to launch the app minicom with a few flags to get minicom to run using a script file. From the command line, the command works perfectly and it executes the script and exits the prog like a charm. But when I launch it from a PHP script, because the program physically outputs in a structured screen manner, it gets itself into a massive loop, starts chewing up CPU cycles going right up to 99% until I kill the app. Has anyone else had any experience with launching programs like Minicom so that it can run without getting itself caught up in a loop ? Chris --usr/ccs/bin/sccs prs -d ???see system() and exec() function in the manual.
Chris Aitken - Webmaster/Database Designer - IDEAL Internetemail: chris@ideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890
--------------------------------------------
Unix -- because a computer's a terrible thing to waste!