How to type password automatically without user interference. For example
echo 'MyPassword@2014' > su UserName
I want to automat this in my script. The script should not wait for input. It should read from variable or file and proceed with further execution.
I know we have Expect tool for the same. But I want this to implement without Expect tool.
Aucun commentaire:
Enregistrer un commentaire