Re: [PHP] PHP run from console - automatic password input

2011-11-29 Thread Peter
fclose($pipes[0]); fclose($pipes[1]); proc_close($process); } ? ...but the above doesnt work either and i still get enter the passphrase prompt 2011/11/29 shiplu shiplu@gmail.com On Tue, Nov 29, 2011 at 8:21 AM, asdf zxcv jazdatest...@gmail.com wrote: I'm trying to make my php

Re: [PHP] PHP run from console - automatic password input

2011-11-29 Thread shiplu
Did you try -passin, -passout options of openssl command? See the man page here http://linux.die.net/man/1/openssl Specially the Pass phrase arguments section. -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader

Re: [PHP] PHP run from console - automatic password input

2011-11-29 Thread Peter
passin and passout are not userd during -revoke They are used to give parameters to create the certificate and give it the above parameters. But, I think i managed to bypass the problem. I wrote a shell script using expect, after 30 minutes of fighting, script does what I want it to. It takes a

Re: [PHP] PHP run from console - automatic password input

2011-11-29 Thread Mihamina Rakotomandimby
On 11/30/2011 01:11 AM, Peter wrote: I wrote a shell script Please would you show it? AFAIK, if Bash can do it, PHP should also... Thanks. -- RMA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP run from console - automatic password input

2011-11-28 Thread asdf zxcv
I'm trying to make my php script (run from console) to input nesesary data when console asks for it. For example, i want to automatically manage revoking self-signed certificates, but when i exec(command) then system asks me to give the pass phrase. I dont want to do that. Instead, I want my

Re: [PHP] PHP run from console - automatic password input

2011-11-28 Thread shiplu
On Tue, Nov 29, 2011 at 8:21 AM, asdf zxcv jazdatest...@gmail.com wrote: I'm trying to make my php script (run from console) to input nesesary data when console asks for it. For example, i want to automatically manage revoking self-signed certificates, but when i exec(command) then system

[PHP] PHP and the Console

2001-08-20 Thread Bill Brigden
Hi all, How could I use a script on the console - to interact, and take the users input. Like a shell/perl script - but in php? Bill. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] PHP and the Console

2001-08-20 Thread Andrew Libby
#!/path/to/php -q ?PHP echo Hello World!\n; ? On Mon, Aug 20, 2001 at 05:14:22PM +0100, Bill Brigden wrote: Hi all, How could I use a script on the console - to interact, and take the users input. Like a shell/perl script - but in php? Bill. -- PHP General Mailing List

Re: [PHP] PHP and the Console

2001-08-20 Thread Garth Dahlstrom
,r); while (!feof(STDIN)) { $BUFFER = fgetc(STDIN); $INPUT .= $BUFFER; if ($BUFFER == \n) break; } // fclose($fp); } set_time_limit(0); ## Don't time out in interactive console mode. define (STDIN, fopen(php://stdin,r)); ## Make STDIN