LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2011, 03:23 AM   #1
gupadhyy
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
How to install a software using shell script?


I everyone,

This is my first post and i hope it will go good!

I have a daily routine task that is installation of one software...

Now i feel that it should be automated. Already i have automated some parts but not able to automate the software intallation using shell script.

When i write install.bin in a shell script then it start asking me the options...

I want my script to read these option from a file... I know how to read a file using shell script but dont know how to apply it at the installation time.

Any help would be highly appreciated!!!


Regards,

Gaurav
 
Old 10-07-2011, 03:43 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi and welcome to LQ.

It'll be easier if you post your script. What package are you trying to install?
 
Old 10-07-2011, 04:14 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
how about
Code:
cat answers.txt|install.bin
note: it will only work if the answers are always in the same order, they don't vary, etc ...
 
Old 10-11-2011, 08:04 AM   #4
gupadhyy
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for instant reply and i am sorry that i am replying too late

cat answers.txt|install.bin works...

I created a dummy script that asks for some options like name surname and i gave those values in answers.txt file and it worked properly.

But i am afraid that will it work on the actual installer? As i dont know that how they have been written...and i dont want to take any risk because environment is very crucial... if something got wrong they will kill me for my initiative

Regards,

Gaurav
 
Old 10-11-2011, 11:42 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Well, set up a test system and try it there. That is the way you should do it with any change to a production system, by the way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install software package using shell script +property file..... badmas Linux - Newbie 3 04-16-2011 03:12 AM
Hi, i want a shell script which install the software on lan. shreeramabhi Linux - Newbie 1 03-13-2009 04:28 AM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration