|
Rank: Starting Member
Groups: Registered
Joined: 4/3/2004 Posts: 3 Location: ,
|
This is more of a generl perl question, but i'm useing it in a ipn script so I figured it was ok to post here :)
What i'm doing is creating a ftp account after reciving payment. I'm useing pure-ftpd. this comes with a command to create accounts pure-pw. i'm running it in my script by doing
$output = `pure-pw -u blah`;
my problem is, when doing this command from a termenal, it then asks twice for the password. Password can not be passed via command line. so how do I "type" this in from my cgi script?
|
|
Rank: Starting Member
Groups: Registered
Joined: 2/13/2004 Posts: 109 Location: ,
|
Have a look at the "Expect" module. You can find it on CPAN.
Dave Burchell PayPal Technical Support PayPal, an eBay company
|