Skip to content
Snippets Groups Projects
Commit 01db2994 authored by ashagp2's avatar ashagp2
Browse files

Upload New File

parent 11eefd0d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/expect -f
set user [lindex $argv 0]
set password [lindex $argv 1]
spawn /bin/su $user
expect "Password:"
send "$password\r";
interact
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment