Re: Re: system, exec, shell_exec, passthru

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, that is a similar problem and sounds very much like
what I am experiencing.

Peter


Quoting Michael Jonsson <micke@xxxxxxxxx>:
> Hi,
> 
> I can run any external program like ls, cp, uptime...
> But if a try to run my shell script a get error.
> 
>           $passwdexe = "sudo /usr/bin/webpasswd";
>           $user=$_POST[name];
>           $passwd="$passwdexe $user 123456";
>           echo $passwd;
>           $result = system($passwd);
> 
> Resultat from the web, "sudo /usr/sbin/webpasswd billy 12345678"
> and from the error_log, "couldn't read file "./usr/sbin/webpasswd.": no 
> such file or directory".
> 
> .Mike

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux