[Novalug] Scripting question
jerry w
jerrywone at gmail.com
Thu Feb 16 07:46:37 EST 2012
expect sounds good
or some commands have a -y
like yum -y update answering yes
to whatever prompts
or -f force
--noprompt
or something like that...
On Thu, Feb 16, 2012 at 7:41 AM, Miles D. Oliver
<miles.d.oliver at gmail.com> wrote:
> what about using expect?
>
>
> On Thu, Feb 16, 2012 at 6:46 AM, James Swanson <swanson.james at gmail.com>
> wrote:
>>
>> We're trying to do a mass install of RHEL 6 Client on thin clients. Due
>> to space limitations on the clients, we're doing a livecd to flash drive
>> install. I have the user on the sudoers list with the "no password" option
>> invoked. The problem I'm having is the install script hangs after invoking
>> livecd-iso-to-disk. Here's the script
>>
>> #!/bin/bash
>> set $return=\r
>> wget http://servername/kiosk.iso
>> sudo livecd-iso-to-disk --format --reset-mbr --noverify
>> /home/user/kiosk.iso /dev/sda1
>> echo $return
>> sudo reboot
>>
>> After downloading the iso, it runs the "
>> sudo livecd-iso-to-disk --format --reset-mbr --noverify
>> /home/user/kiosk.iso /dev/sda1" command. Then it stops. When that command
>> is run, a Warning is issued and the program asks to press Enter to continue
>> or ctrl-c to abort. I can't get it to accept the carriage return. Any
>> suggestions?
>>
>> Jim
>>
>> _______________________________________________
>> Novalug mailing list
>> Novalug at calypso.tux.org
>> http://calypso.tux.org/mailman/listinfo/novalug
>>
>
>
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>
--
Jerry W
More information about the Novalug
mailing list