The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Self ssl alternate in Solaris Tirmazi SUN Solaris 2 09-16-2008 11:38 PM
alternate lines pstanand Shell Programming and Scripting 6 03-18-2008 11:14 PM
Alternate way for echo. senthil_is Shell Programming and Scripting 5 03-05-2008 09:12 AM
Alternate Logon Method? earnstaf Forum Support Area for Unregistered Users & Account Problems 2 08-16-2007 04:54 PM
Alternate command for cut Mohammed Shell Programming and Scripting 2 10-20-2006 08:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
sais sais is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 36
alternate to set -x in csh scripts

hi all

i want to debug a csh script and i give set -x for that but i get an error.

is there any command similar to set -x for csh scripts?
  #2 (permalink)  
Old 10-11-2008
otheus's Avatar
otheus otheus is online now Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,892
According to here you can do "set printexitvalue" in tcsh. Every time a function or command returns, tcsh will print the exit value for you. It's not exactly set -x, but it would aid in debugging. TCSH is a freely installable version of csh.

Caveat emptor: I don't use tcsh.
  #3 (permalink)  
Old 10-12-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 717
Hi.

On the first screen of man tcsh:

Code:
       -v  Sets the verbose shell variable, so that command  input  is  echoed
           after history substitution.

       -x  Sets  the  echo shell variable, so that commands are echoed immedi-
           ately before execution.

which, combined with the suggestion from otheus should provide a lot of debugging help.

The man pages, Google, and Wikipedia are your friends ... cheers, drl
  #4 (permalink)  
Old 10-12-2008
otheus's Avatar
otheus otheus is online now Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,892
Man page? WTF is a man page?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0