Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
edwagbb
/
code
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e4ccbc9
code
/
su.sh
edwagbb
Update su.sh
cce33a9
verified
almost 2 years ago
raw
Copy download link
history
blame
196 Bytes
#!/usr/bin/expect
set
user [lindex
$argv
0]
set
password [lindex
$argv
1]
set
command
[lindex
$argv
2]
log_user 1;
spawn su -
$user
-c
"
$command
"
expect
"Password:"
send
"
$password
\r"
expect eof