mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
20 lines
297 B
Text
20 lines
297 B
Text
#!/usr/bin/expect
|
|
set timeout 10
|
|
|
|
set cmd [lindex $argv 0]
|
|
set path [lindex $argv 1]
|
|
set user [lindex $argv 2]
|
|
set password [lindex $argv 3]
|
|
|
|
spawn $cmd $path
|
|
|
|
expect "Email address:"
|
|
send "$user\r";
|
|
|
|
expect "Password:"
|
|
send "$password\r";
|
|
|
|
expect "Retype password:"
|
|
send "$password\r";
|
|
|
|
interact
|