note 28607 added to function.shell-exec

From: Date: Fri, 17 Jan 2003 22:11:48 +0000
Subject: note 28607 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-42299@lists.php.net to get a copy of this message
$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? -- http://www.php.net/manual/en/function.shell-exec.php http://master.php.net/manage/user-notes.php?action=edit+28607 http://master.php.net/manage/user-notes.php?action=delete+28607 http://master.php.net/manage/user-notes.php?action=reject+28607

« previous php.notes (#42299) next »