RE: Debug mode for running scripts?



-----Original Message-----
From: ubuntu-users-bounces@xxxxxxxxxxxxxxxx
[mailto:ubuntu-users-bounces@xxxxxxxxxxxxxxxx]On Behalf Of
Nils Kassube
Sent: June 9, 2007 8:54 AM
To: ubuntu-users@xxxxxxxxxxxxxxxx
Subject: Re: Debug mode for running scripts?


Jan Sneep wrote:
Is there some way to run a script in a step-by-step way to
see how far
the script goes before it runs into an error? Something
like a verbose
step-by-step option of some kind?

If you include

set -o verbose

to the script it will print every command before execution to
standard
output.

So I would edit the script file and add that line at the top of the file?

and by standard output you mean the screen or some actual file someplace?

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: FTP VERBOSE Question
    ... I have an FTP script that has the output redirected to a physical ... commands I can type VERBOSE before the command and then the FTP ... This VERBOSE command appears to work for mostly everything in FTP ...
    (comp.sys.ibm.as400.misc)
  • Re: Debug mode for running scripts?
    ... Jan Sneep wrote: ... Something like a verbose ... to the script it will print every command before execution to standard ...
    (Ubuntu)
  • Re: Debug mode for running scripts?
    ... like a verbose ... So I would edit the script file and add that line at the top of the ... I'll try to explain how it works: Every command in Linux has 3 standard ...
    (Ubuntu)
  • somthing wrong with my codes???
    ... I write a small script for practice purpose. ... I want to parse out password, verbose, and score into ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (perl.beginners)
  • Re: bash -x -n ?
    ... only checks the syntax without running. ... I wonder if there's a bash option which is verbose, ... the script. ...
    (comp.unix.shell)