set -e (was: RHEL-CentOS conversion scripts (was Re: apache?))
Alan Johnson
alan at datdec.com
Sat Jun 20 03:14:39 EDT 2009
On Fri, Apr 10, 2009 at 7:12 PM, Michael ODonnell <
michael.odonnell at comcast.net> wrote:
>
>
> > the basic echoing of commands that I know is out there some where
> > would make my scripts way more professional. Anyone know that?
>
> Not quite sure what you're referring to but between bash's -x and -v
> options you will probably get as much chatty output as you could ever
> want. If you remember nothing else it's worth keeping in mind that
> bash offers lots of good interactive help. For example, the options in
> question are described as part of the "set" command, so if you say:
>
> help set
>
> ...you'll probably see what you want.
Great! I have cleaned up the script using set -ex and (finally) used it on
another system. Here is the link to the tar ball:
http://alan.datdec.com/temp/rhel-cos.tar.gz
Plus, I added a README. Enjoy and thanks to all!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20090620/bac022df/attachment.html
More information about the gnhlug-discuss
mailing list