Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-23-2010, 11:47 AM   #1
LQ Newbie
Registered: Mar 2010
Location: Colombo
Distribution: Ubuntu and Cent OS
Posts: 9

Rep: Reputation: 2
Automation software installation

Hi all

I am in process of automating a particuler software development environment on Linux (Cent os). The automation script is supposed not to have any user interaction after it is started. But still I have two problems I have no clue about them

1)How to switch between the super user and the normal user using the script. Because for the super user, there is a password prompt
2)How do the script provide a response when prompted to typical yes/no questions (ex:do you want to install it or not ? Then the script should say yes ). Can I read it from a file and give it ?

I would be very thankful f somebody can give some help.
Old 06-23-2010, 11:55 AM   #2
LQ Newbie
Registered: Oct 2009
Location: NJ
Distribution: Ubuntu 9.04
Posts: 3

Rep: Reputation: 0
I had to do something similar a while back and used Expect.

I was running on Ubuntu 8.04 at the time.

Just google Expect script or Expect automation.

Good luck.
Old 06-23-2010, 03:36 PM   #3
Registered: Sep 2009
Location: Denmark
Distribution: Arch Linux
Posts: 37

Rep: Reputation: 15
On one of the questions, you could check the man page for the package manager. I would be surprised if it didn't have an option to auto-answer yes to the questions of "do you really want to install this?"
Old 06-23-2010, 03:47 PM   #4
LQ Newbie
Registered: Jan 2010
Location: Switzerland
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
actually it has one but I don't remember 'it ... but a man yum (on Cent OS) will resolve that


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
Linux installation automation reshmpv Linux - Desktop 3 08-21-2008 09:33 AM
automation of installation of openVPN (win) eantoranz General 0 06-29-2005 10:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 PM.

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