SUMMARY: Debugging option



Hello Managers
Thanks for all the responses and most of them are working.

Bill R. Williams
Jim VanBrocklin

Try the command 'script'
man script
script makes a record of a terminal session.When you run a script it actually forks a new shell and starts logging to a file (default "typescript").Both the commands you enter and the output of those commands will be logged to typescript.When you have everything you want to capture, just 'exit' the shell and 'script' will terminate leaving you with a log of the whole session.

Dave Markham
Lineberger, Aaron
Christopher McNabb
Steve Sandau
D Smythe
Sanjiv K Bhatia

sh ./filename | tee -a /var/log/filename.log 2>&1
sh ./filename > /var/log/filename.log 2>&1
ksh -x filename > ./testfile 2>&1
sh -x filename.sh 2>&1 | more
sh -n filename.sh > log.txt 2>&1
sh -n filename 2> ./testfile
sh -xv filename 2>&1 |more
sh -xv 2>&1 > .testfile

Shyam Hazari
Add "set -x" for debugging to the script

Thanks for all your recommendations.


Rob









---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: using xml to save/open project data
    ... http://www.TransProCalc.org - Free translation project mgmt software ... set filename tk_getOpenfile ... Exec'ing the script you run it as a separate process, your script won't be able to access its vars. ... generating the xml file is easy enough. ...
    (comp.lang.tcl)
  • Re: Help me find 5 mistakes and than solution to thoes mistakes!
    ... > 8:# This script will create links to files from all of the filename ... > 10:# arguments provided on stdin if no filenames provided on command ...
    (Fedora)
  • Re: MIME - scripting and symbol substitutions
    ... This script is creating a text file with a different filename ... symbol called NEWFILENAME (which works, ... MIME from the command line with all options (so normal DCL ...
    (comp.os.vms)
  • Re: virtual server backups
    ... Here is the script. ... 'Save state the virtual machine ... Filename = MyArray) ... Set objVM = Nothing ...
    (microsoft.public.windows.server.general)
  • Help with os.spawnv
    ... I've had to migrate back to Python 2.1 and am now trying to use ... This script gets each Ascii file in the workspace, ... for filename in filenames ...
    (comp.lang.python)