How to work with external programs like 'passwd'

From: Date: Thu, 22 May 2003 23:12:10 +0000
Subject: How to work with external programs like 'passwd'
Groups: php.general 
Request: Send a blank email to php-general+get-148651@lists.php.net to get a copy of this message
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. Best regards, Brane

« previous php.general (#148651) next »