Re: popen(); problem, the function don`t finds the command......

From: Date: Thu, 11 Apr 2002 14:09:19 +0000
Subject: Re: popen(); problem, the function don`t finds the command......
Groups: php.general 
Request: Send a blank email to php-general+get-92573@lists.php.net to get a copy of this message
Hermann, Maybe change: $saslpasswd = "/usr/sbin/saslpasswd -p $username"; to: $saslpasswd = "/usr/sbin/saslpasswd -p " . $username; I assume $username is being assigned somewhere. Regards, -- Barry C. Hawkins Systems Consultant All Things Computed barry.hawkins@allthingscomputed.com On Thu, 11 Apr 2002 14:53:50 +0000 Hermann Bier <kpot@gmx.net> wrote: Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = "/usr/sbin/saslpasswd -p $username"; $saslproc = popen($saslpasswd,"w"); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or directory # what i`m doing wrong?? please help. bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#92573) next »