Re: How to work with external programs like 'passwd'

From: Date: Thu, 22 May 2003 23:25:00 +0000
Subject: Re: How to work with external programs like 'passwd'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148653@lists.php.net to get a copy of this message
At 01:12 23.05.2003, Branko F. Graènar said: --------------------[snip]-------------------- >Hi there! > >I'm starting new PHP project, which will utilize GPG system executable. GPG >asks for some operations for password input. > >Programs like passwd and gpg open new session, when they ask for password, >so there is not simple possible to: > >echo $password | gpg <options>... > >In perl, there is Expect package to deal with such programs. You can use >IPC::Open2 or IPC::Open3 too. > >Any informations/links/whatever regarding this topis would be very >appreciated. --------------------[snip]-------------------- You might want to check out the popen() function: http://www.php.net/manual/en/function.popen.php -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#148653) next »