[Novalug] Scripting question
Miles D. Oliver
miles.d.oliver at gmail.com
Thu Feb 16 07:41:57 EST 2012
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20120216/cd8363a0/attachment.html
More information about the Novalug
mailing list