Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
edwagbb
/
code
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
edwagbb
commited on
Mar 3, 2024
Commit
c21bd4d
·
verified
·
1 Parent(s):
f716109
Create su.sh
Browse files
Files changed (1)
hide
show
su.sh
+10
-0
su.sh
ADDED
Viewed
@@ -0,0 +1,10 @@
1
+
#!/usr/bin/expect
2
+
3
+
set user [lindex $argv 0]
4
+
set password [lindex $argv 1]
5
+
set command [lindex $argv 2]
6
+
7
+
spawn su - $user -c "$command"
8
+
expect "Password:"
9
+
send "$password\r"
10
+
interact