hi.I want play linux shells command with python.for example i did it:
def add(userName, pasword):
import os
os.system("useradd -d /home/%s -m -p %s %s"%(userName, pasword, userName))
but some where i have problem.
for example when you want change the users password you have to send the command for changing password and then the shell wants you to enter the password and at the next it wants you to retype the password.
how can i answer its questions witch asks after a commands play?