Re: Re: [PHP] passwd commandÆÐ½º¿öµå ÀÚµ¿È­

From: Date: Fri, 18 Aug 2000 02:18:47 +0000
Subject: Re: Re: [PHP] passwd commandÆÐ½º¿öµå ÀÚµ¿È­
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12395@lists.php.net to get a copy of this message
> When there is run /bin/passwd tool, > > passwd dudeson > New user password: <prompt> <--- php limitation > Retype new user password: <prompt> <--- php limitation > > that is, php can't process this prompt Depending on how this program works, you might be able to do this: $pass = "mypass1\n"; system("/bin/echo ${pass}${pass} | ./your_password_checker dudeson") This might work if your password takes stdin and also notices the line break. If it doesn't work, then you should write another one or fine one that will take stdin or argv's. Good luck. -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _____ http://www.jeremybrand.com/ for more... _________________________

« previous php.general (#12395) next »