[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-interactive usage
From: |
Mark Buckaway |
Subject: |
Re: non-interactive usage |
Date: |
Thu, 30 Aug 2001 07:42:20 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010808 |
Narayan Desai wrote:
Is there some way to run multiple commands in the same line in the
interpreter? (ie cmd1;cmd2) We are trying to script node booting in a
cluster, and the boot commands can't be static; also the program
keeping track of this stuff doesn't really have any conception of
state. (we could prefer not to replace this component)
thanks...
-nld
From a shell script:
#!/bin/bash
# Comments go here
ROOT="(hd0,1)"
PART="(hd0,1)
grub --batch <<#GRUB
root $ROOT
setup $PART
GRUB
Works here. I have several scripts that auto-create image files of disks
and use grub in the script to add a boot loader to allow it too boot up
in VMware.
Mark
--
==========================================================================
Mark Buckaway Tel: 416-203-4582 http://www.platespin.com
Sr. Software Developer Fax: 416-203-0621 Email: address@hidden
Platespin Inc. Reception: 416-203-6565
--------------------------------------------------------------------------
The statements made in this message are the opinions of the author and
may or may not reflect the opinions of Platespin Inc.
--------------------------------------------------------------------------