Welcome to the GlobalSight forums. Raise topics for discussion or follow ongoing discussions to keep track of what’s going on.
Select the forum that you are most interested in and join the discussion. All forums are moderated and comments are reviewed before publishing.
September 20, 2016
I'm trying to create a script that automates the installation of GlobalSight on Ubuntu 14.04. I run into an issue when I try to automate running the Install.sh script. I pass the commands I would normally type in by hand as STDIN for that process.
./Install.sh << EOF2
For some reason this does not work and I get an exception
What am I doing wrong?
October 28, 2014
September 20, 2016
November 5, 2014
Maybe you can try it with expect script.
You may need install expect first.
$ sudo apt-get install -y expect
Then compose your expect script and run it with elevated privileges.
Here is an example.
#!/usr/bin/expect # script name: install_gs.exp spawn ./Install.sh expect "Select an option*" send "N " # put the screen prompts and your answers as many as you want # expect "blablabla" # send "" expect "Select an option*" send "7 " expect "Select an option*" send "3 " expect "Create Service*" send "true " expect "Select an option*" send "4 " expect "Create Database*" send "true " expect "Select an option*" send "I " expect "Do you really want to continue*" send "Y " expect "Press 'Enter' to continue*" send "Y " expect EOF
It seems the line end sign cannot show properly. Please add a line end sign (backslash + n) in each send text.
Hope this helps.
Most Users Ever Online: 69
Currently Browsing this Page:
vijay shastri: 40
Roshan Kumar: 20
Alexandre De Sena Viegas: 18
ak sashtri: 17
Amit Dave: 14
varun kumar: 13
Yves Savourel: 13
Emre Akkas: 12
Ayman Kh: 11
Guest Posters: 0
Newest Members: baba bangali, molvi ji_2, Astro baba, Shailesh Shinde, Hiba Sh, molviji 641, Go 2 Mars, ayman crm, molvi ji_1, glsharma glsharma
Moderators: Karol Moran_1: 0
Administrators: waxingmedia: 3, Karol Moran: 43, gsteam: 0