Advertisement
pranjal

Untitled

Aug 5th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. date.sh requires root privileges. I have put this in a file shell1.sh. and I want to run "sh shell1.sh" without entering password on the prompt.
  2.  
  3. #!/usr/bin/
  4. spawn sudo sh date.sh
  5. expect "password:"
  6. send "my_password"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement