Bug #10301 Updated: How can I execute an unix command?
| From: | hholzgra@php.net | Date: | Thu, 12 Apr 2001 14:02:59 +0000 |
| Subject: | Bug #10301 Updated: How can I execute an unix command? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51491@lists.php.net to get a copy of this message | ||
ID: 10301
Updated by: hholzgra
Reported By: mafra@lcmi.ufsc.br
Old-Status: Open
Status: Bogus
Bug Type: Filesystem function related
PHP Version: Earlier? Upgrade first!
Assigned To:
Comments:
system(), exec(), the backtick operator
...
and popen() should all do the job
when dealing with shell functions like output
redirection you should use system() as it
will first start a shell to run the command in
AND YOU SHOULD DEFINETLY CLICK THE DO'S AND DON'TS
LINK ON TOP OF THE ERROR SUBMISSION FORM NEXT TIME
THIS IS NOT A SUPPORT FORUM! ASK THE php-general
MAILING LIST IF YOU HAVE QUESTIONS LIKE THIS!
Previous Comments:
---------------------------------------------------------------------------
[2001-04-12 09:51:44] mafra@lcmi.ufsc.br
For example : 'tail -n 10 test.txt > test2.txt'
I tryed use the exec() function, but without success.
thanks
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10301&edit=2