Sponsored Content
Full Discussion: ksh debuggers??
Top Forums Shell Programming and Scripting ksh debuggers?? Post 76729 by google on Thursday 30th of June 2005 07:08:43 AM
Old 06-30-2005
Not commercial but free. You can do some handy debugging by using set command in your script with a flag or two. See man set.

Code:
set -n  Read commands and check them for syntax errors, but do not execute them. Ignored for interactive shells.

set -x Print commands and their arguments as they are executed.

set - Turns off -x and -v flags and stops examining arguments for flags.
set -v  turns on verbose output.


Last edited by google; 06-30-2005 at 08:15 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

Need info reg. Pro-c Debuggers...

Hi all, I need some info regarding which all debuggers are available for Pro-C code. i am working on Solaris. I had heard about 2 debuggers called 'Workshop' and GDB but then i am not sure. pls help me out in this. Regards Manish (1 Reply)
Discussion started by: mexx_freedom
1 Replies

2. Programming

debuggers and core

Hi, How does a debugger(like adb,dbx,gdb) use a core to get information like stack trace for the users . Is there any link where i can know more on this. rgds Surya p.s: Does a debugger(especially source level debuggers like gdb,dbx) require a core at all for debugging. What is the use of... (1 Reply)
Discussion started by: surya321
1 Replies

3. Shell Programming and Scripting

executing a ksh script from another ksh script

Hi, I'm new to unix scripting.How can i call a script from another script. I have a.ksh and b.ksh .I have to call b.ksh from a.ksh after it is successfully exceuted. I tried using #!/bin/ksh -x in a.ksh and at the end i have used /path/b.ksh My problem is it is executing only a.ksh.it... (6 Replies)
Discussion started by: ammu
6 Replies

4. Shell Programming and Scripting

tracing a ksh script within a ksh script

I normally trace a script with the ksh -x <script name> and redirect strderr to file. But if you have a script like the examble below...... vi hairy bear=`grep bear animals` if then ksh more_animals fi If I ksh -x hairy it won't trace "more_animals" unless I put a -x in it. Is... (1 Reply)
Discussion started by: shorty
1 Replies

5. Shell Programming and Scripting

import var and function from ksh script to another ksh script

Ih all, i have multiples ksh scripts for crontab's unix jobs they all have same variables declarations and some similar functions i would have a only single script file to declare my variables, like: var1= "aaa" var2= "bbb" var3= "ccc" ... function ab { ...} function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies

6. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

7. UNIX for Dummies Questions & Answers

Difference Between executing llike ./myscript.ksh and . ./myscript.ksh

Hi , What is the diffence between executing the script like ./myscript.ksh . ./myscript.ksh I have found 2 difference but could not find the reason 1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
Discussion started by: max_hammer
5 Replies

8. Shell Programming and Scripting

different behaviour for ksh and ksh -x

I'm getting different behaviour when executing below script in debug option. $ cat ss.ksh ff=$(pwd) echo " ff : $ff" $ ksh ss.ksh ff : /tmp $ ksh -x ss.ksh + + pwd ff= + echo ff : ff : I was getting this behaviour in my actuall script i'm able to reproduce this in simple script... (4 Replies)
Discussion started by: luckybalaji
4 Replies

9. Shell Programming and Scripting

ksh help

I running a command like this : oracle@abc:/tmp DEV$ grep abc0d3 /var/opt/oracle/oratab abc0d31:/opt/oracle/product/11.2.0/racdb:N abc0d3:/opt/oracle/product/11.2.0/racdb:N I want to get only abc0d31 . how to modify grep to get this ? Thanks (3 Replies)
Discussion started by: talashil
3 Replies

10. Shell Programming and Scripting

ksh help

Hi, I have command like this with ooutput : unix>tnsping abc TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 17-AUG-2011 17:06:11 Copyright (c) 1997, 2007, Oracle. All rights reserved. Used parameter files: /opt/oracle/network/admin/sqlnet.ora ... (19 Replies)
Discussion started by: talashil
19 Replies
IPSEC_KLIPSDEBUG(8)						  [FIXME: manual]					       IPSEC_KLIPSDEBUG(8)

NAME
ipsec_klipsdebug - set KLIPS and MAST debug features and level. Other stacks are not supported. SYNOPSIS
ipsec klipsdebug ipsec klipsdebug --set flagname ipsec klipsdebug --clear flagname ipsec klipsdebug --all ipsec klipsdebug --none ipsec klipsdebug --help ipsec klipsdebug --version DESCRIPTION
Klipsdebug sets and clears flags that control various parts of the debugging output of Klips (the kernel portion of FreeS/WAN IPSEC). The form with no additional arguments lists the present contents of /proc/net/ipsec_klipsdebug. The --set form turns the specified flag on, while the --clear form turns the specified flag off. The --all form turns all flags on except verbose, while the --none form turns all flags off. The current flag names are: tunnel tunnelling code tunnel-xmit tunnelling transmit only code pfkey userspace communication code xform transform selection and manipulation code eroute eroute table manipulation code spi SA table manipulation code radij radij tree manipulation code esp encryptions transforms code ah authentication transforms code rcv receive code ipcomp ip compression transforms code verbose give even more information, BEWARE: a)this will print authentication and encryption keys in the logs b)this will probably trample the 4k kernel printk buffer giving inaccurate output All Klips debug output appears as kernel.info messages to syslogd(8). Most systems are set up to log these messages to /var/log/messages. Beware that klipsdebug --all produces a lot of output and the log file will grow quickly. The file format for /proc/net/ipsec_klipsdebug is discussed in ipsec_klipsdebug(5). EXAMPLES
klipsdebug --all turns on all KLIPS debugging except verbose. klipsdebug --clear tunnel turns off only the tunnel debugging messages. FILES
/proc/net/ipsec_klipsdebug, /usr/local/bin/ipsec SEE ALSO
ipsec(8), ipsec_manual(8), ipsec_tncfg(8), ipsec_eroute(8), ipsec_spi(8), ipsec_spigrp(8), ipsec_klipsdebug(5) HISTORY
Written for the Linux FreeS/WAN project <http://www.freeswan.org/> by Richard Guy Briggs. BUGS
It really ought to be possible to set or unset selective combinations of flags. [FIXME: source] 10/06/2010 IPSEC_KLIPSDEBUG(8)
All times are GMT -4. The time now is 11:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy