Last active
March 2, 2020 11:52
-
-
Save jeansymolanza/4f138e4d4321e83fc9e7a6b1e09c3a45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/expect -f | |
set force_conservative 0 ;# set to 1 to force conservative mode even if | |
;# script wasn't run conservatively originally | |
if {$force_conservative} { | |
set send_slow {1 .1} | |
proc send {ignore arg} { | |
sleep .1 | |
exp_send -s -- $arg | |
} | |
} | |
set timeout -1 | |
spawn $env(SHELL) | |
match_max 100000 | |
# Navigate to directory and initialise installation | |
send -- "cd /usr/ud/SB\r" | |
send -- "sudo /usr/ud/bin/udt\r" | |
# Skip SBDEMO account instalaltion | |
send -- "\r" | |
# Confirm release installation | |
send -- "y\r" | |
# Confirm cataloging the programs locally using DIRECT option | |
send -- "y\r" | |
# Confirm usage of USAM:Print printer management functions | |
send -- "n\r" | |
# Skip SBDEMO account instalaltion | |
send -- "\r" | |
# Enter SB+ group name | |
send -- "sb\r" | |
# Confirm installation has been successful | |
send -- "\r" | |
send -- "exit\r" | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment