The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Background execution of a script Cameron Shell Programming and Scripting 2 10-03-2007 02:50 AM
error during the execution of script surjyap Shell Programming and Scripting 1 08-24-2007 05:10 PM
Pb with script execution and variables Cecile AIX 1 09-15-2006 06:54 AM
pb with script execution Cecile UNIX for Dummies Questions & Answers 3 09-14-2006 07:37 AM
execution of shell script malaymaru Shell Programming and Scripting 5 06-13-2005 06:49 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-10-2004
Registered User
 

Join Date: Nov 2004
Posts: 22
Unix script execution messages

Hi folks,

Is there a way to view the messages, during execution of a unix script?, for the purpose of debugging.

Regards
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-10-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Hmm - not too sure what you mean.

You can use "set -x" (ksh) within a script or in an interactive shell session to enable you to see expansions and substitutions as they are executed.

e.g.
$ set -x
$ foo=bar
$ echo $foo
+ echo bar
bar
$

Is this what you want?

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 11-12-2004
Registered User
 

Join Date: Nov 2004
Posts: 22
Hi Zazzybob,

It works for me.

thanks
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0