Update su.sh
Browse files
su.sh
CHANGED
|
@@ -4,6 +4,10 @@ set user [lindex $argv 0]
|
|
| 4 |
set password [lindex $argv 1]
|
| 5 |
set command [lindex $argv 2]
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
log_user 1;
|
| 8 |
spawn su - $user -c "$command"
|
| 9 |
expect "Password:"
|
|
|
|
| 4 |
set password [lindex $argv 1]
|
| 5 |
set command [lindex $argv 2]
|
| 6 |
|
| 7 |
+
echo $user
|
| 8 |
+
echo $password
|
| 9 |
+
echo $password
|
| 10 |
+
|
| 11 |
log_user 1;
|
| 12 |
spawn su - $user -c "$command"
|
| 13 |
expect "Password:"
|