Exactly what the subject says. I need to execute some commands that need user input. Let's say, I need to execute 'passwd' from php and how can I do that in php and change someone's pwd?
Tnx
Executing linux commands from php with input
Moderator: General Moderators
If you need interactivity with script, you will be using the expect unix command.
http://www.raycosoft.com/rayco/support/ ... tutor.html
In a few words, you will be creating a bash scrint that runs su, checks out when the word password appears, then it will automagically feed your password. From php you will be executing the bash script.
http://www.raycosoft.com/rayco/support/ ... tutor.html
In a few words, you will be creating a bash scrint that runs su, checks out when the word password appears, then it will automagically feed your password. From php you will be executing the bash script.