#!/usr/bin/expect # # softaculous_install.exp # # Set the variables set XN_REMOTE_USER [lindex $argv 0] set XN_REMOTE_PASS [lindex $argv 1] # # Do not edit below this line unless you fully understand what you are doing # # Spawn and install spawn ./install.sh expect "Please enter the Remote User : " send -- "$XN_REMOTE_USER\n" expect "Enter Password: " send -- "$XN_REMOTE_PASS\n" interact