>-----Original Message----- >From: Nick Rout [mailto:[email protected]] >Sent: Monday, December 21, 2009 4:59 PM > >Hard coded sda. Remove it to a variable, like > >DISK=sda >sfdisk -dx /dev/$DISK > /home/adminstrator/scripts/$DISK-pt.sf >etc > >etc. Makes changing disks easier.
Thanks for that hint Nick - it is simple scripting stuff like this I have yet to learn with linux. Hopefully I'll pick it up as I go - next step for me is to implement Moodle on this box now that I know I can restore it at any time. To help my scripting, is there a simple way (one liner maybe) to ask for the user to input a multi-character value and assign it to a variable? Also, is there an equivalent of the DOS 'pause' command under bash? Cheers, Bryce Stenberg. DISCLAIMER: If you have received this email in error, please notify us immediately by reply email, facsimile or collect telephone call to +64 3 9641200 and destroy the original. Please refer to full DISCLAIMER at http://www.hrnz.co.nz/eDisclaimer.htm
