Re: Unix command in PHP
| From: | Teodor Cimpoesu | Date: | Fri, 24 Nov 2000 16:40:15 +0000 |
| Subject: | Re: Unix command in PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26970@lists.php.net to get a copy of this message | ||
Hi Chris!
On Fri, 24 Nov 2000, Chris Aitken wrote:
> 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:
> > >
> > > usr/ccs/bin/sccs prs -d ???
> >see system() and exec() function in the manual.
>
>
>
> 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.
Well, does minicom have any non-interactive functionality? If not try
using other commands that run non interactive like `chat'.
-- teodor