Re: [Nolug] Viewing each command in a bash script

From: Joey Kelly <joey_at_joeykelly.net>
Date: Fri, 21 Feb 2003 09:53:33 +0000
Message-Id: <20030221155122.FCQS6324.imf23bis.bellsouth.net@there>

Or for that matter, "cat scriptname" or "more scriptname"

--Joey

Thou spake:
>To debug a script try running "sh -v scriptname"
>To see commands and comments or "sh -x scriptname"
>To see the commands only.
>
>-----Original Message-----
>From: owner-nolug@joeykelly.net [mailto:owner-nolug@joeykelly.net] On
>Behalf Of Ron Johnson
>Sent: Friday, February 21, 2003 6:05 AM
>To: NOLUG ML
>Subject: [Nolug] Viewing each command in a bash script
>
>Hi.
>
>Normally, if one runs a script, all that one sees is the output
>from the programs, not any comments in the script, or the actual
>commands.
>
>Is there any way to enable such viewing? I'd find it very useful
>for debugging scripts.
>
>TIA,
>Ron

-- 
Joey Kelly
< Minister of the Gospel | Computer Networking Consultant >
http://joeykelly.net
I'd rather crash a Ford than wreck a Chevy
___________________
Nolug mailing list
nolug@nolug.org
Received on 02/21/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST