D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Long bash scripts

 

If you've got a bash script of say 150 lines and it fails at line 60, is there 
a way of adapting the script to allow a restart at line 60?

There are only certain places where it can exit, so these can be trapped and 
labelled as start points.

How would the script be written to accept command line arguments to jump to 
that line?

-- 

Neil Williams
=============
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.williamsleesmill.me.uk/
http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00070.pgp
Description: PGP signature