mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
20 lines
286 B
Text
Executable file
20 lines
286 B
Text
Executable file
#!/usr/bin/expect
|
|
set timeout 20
|
|
|
|
set cmd [lindex $argv 0]
|
|
set arguments [lrange $argv 1 end]
|
|
|
|
spawn $cmd {*}$arguments
|
|
|
|
expect "Email address:"
|
|
send "__EMAIL__\r";
|
|
|
|
expect "Password:"
|
|
send {__PASSWORD__};
|
|
send "\r";
|
|
|
|
expect "Retype password:"
|
|
send {__PASSWORD__};
|
|
send "\r";
|
|
|
|
interact
|