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...
ddeb35d
code
/
su.sh
edwagbb
Update su.sh
ddeb35d
verified
almost 2 years ago
raw
Copy download link
history
blame
238 Bytes
#!/usr/bin/expect
set
user [lindex
$argv
0]
set
password [lindex
$argv
1]
set
command
[lindex
$argv
2]
echo
$user
echo
$password
echo
$password
log_user 1;
spawn su -
$user
-c
"
$command
"
expect
"Password:"
send
"
$password
\r"
expect eof