note 28607 rejected from function.shell-exec by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 04:54:09 +0000 |
| Subject: | note 28607 rejected from function.shell-exec by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48441@lists.php.net to get a copy of this message | ||
Note Submitter: Sena
----
$output = shell_exec("$command");
echo(nl2br($output));
this doesn't work...
$output = shell_exec("ls -l");
..is no problem, but
$output = shell_exec("fping 192.168.0.100");
doesn't work, and
$output = shell_exec("statusgw");
doesn't work too....
######statusgw########
#!/bin/bash
fping 192.168.0.100
I tried system() and exec() too....doesn't work
does anybody know a solution?