I created a script wherein it will change password of a user
spawn passwd [lindex $argv 0]
set password [lindex $argv 1]
expect "New UNIX password:"
expect "Retype new UNIX password:"
My simple but noob question is can I run this script without any output. What I mean is run the script in quite mode. I don't want to output anything when I run the script. When I run the script, it output the messages found on passwd.