[Gllug] Help with Script.

Richard W.M. Jones rich at annexia.org
Wed Jan 12 22:04:51 UTC 2011


On Mon, Jan 10, 2011 at 03:57:02PM +0000, Martin N Stevens wrote:
> #!/bin/bash -x
> 
> Now that is really handy, thanks.

Equivalently you can add:

  set -x

near the beginning of the script.

  set -e

(exit on any error) can also be useful.

Rich.

-- 
Richard Jones
Red Hat
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list