|
|
Automating the Software Installation using Shell script
Hi All,
I have installed FReeBSD and I am writing a shell script which can do
the updating ports tree, installing system tools etc. When I am doing
it manually ,I need to select some options.
I want to automate that whole process. How can I do so. I know the
sequence of questions as well the respective answers to be selected .
Are there any way we can automate that part writing a shell script ?
Thanks,
Aditi Dave
|
|
0
|
|
|
|
Reply
|
aditidave
|
1/9/2009 7:27:33 PM |
|
On 2009-01-09, aditidave@gmail.com <aditidave@gmail.com> wrote:
> I have installed FReeBSD and I am writing a shell script which can do
> the updating ports tree, installing system tools etc. When I am doing
> it manually ,I need to select some options.
> I want to automate that whole process. How can I do so. I know the
> sequence of questions as well the respective answers to be selected .
> Are there any way we can automate that part writing a shell script ?
Depends. What kind of interface is it ? read ? dialog ? Some
other curses interface ? If one of the latter two, take a look
at Expect, it might be what you need.
--
Andr� Majorel <URL:http://www.teaser.fr/~amajorel/>
"No meetings were held, nor secret handshakes created, to allow a Seria-
list Elite to disenfranchise the (tonal) non conformist. None had to be."
-- Wendy Carlos
|
|
0
|
|
|
|
Reply
|
Andre
|
1/9/2009 11:28:58 PM
|
|
At 2009-01-09 06:28PM, "Andre Majorel" wrote:
> On 2009-01-09, aditidave@gmail.com <aditidave@gmail.com> wrote:
>
> > I have installed FReeBSD and I am writing a shell script which can do
> > the updating ports tree, installing system tools etc. When I am doing
> > it manually ,I need to select some options.
> > I want to automate that whole process. How can I do so. I know the
> > sequence of questions as well the respective answers to be selected .
> > Are there any way we can automate that part writing a shell script ?
>
> Depends. What kind of interface is it ? read ? dialog ? Some
> other curses interface ? If one of the latter two, take a look
> at Expect, it might be what you need.
And if you're new to Expect, check out (1) autoexpect, and (2) Exploring
Expect -- http://oreilly.com/catalog/9781565920903/
--
Glenn Jackman
Write a wise saying and your name will live forever. -- Anonymous
|
|
0
|
|
|
|
Reply
|
Glenn
|
1/10/2009 3:22:10 AM
|
|
|
2 Replies
415 Views
(page loaded in 0.037 seconds)
|
|
|
|
|
|
|
|
|