10-22-2004
#! /bin/ksh
Yes. I have #! /bin/ksh at the begining of my program.
It's very interesting that I only get correct result when I run it with sh -x myprogram mode.
It will give me this message:
=========================
reaktime3[109]: 1690: not found
breaktime3[109]: 900: not found
breaktime3[109]: 1797: not found
breaktime3[109]: 1791: not found
==========================
This is my 109 line:
===========================================
109 /usr/ucb/echo "$intID" "$strNAME" "$intSHIFT" "`$intTotalPaidBreak|bc`" "$intTotalUnpaidBreak" >>/tmp/breaktime/REPORT.$$
=========================================
It's one line in shell.
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
The following C++ code segment is not working in debug mode build on HP-UNIX machine. It is not printing "Hello World" message on the screen. While it is working fine in release mode build.
==============================================
class KLogStreamBuf : public streambuf {
public:... (0 Replies)
Discussion started by: heena
0 Replies
2. Shell Programming and Scripting
When I run a lengthy script in debug mode i need to capture all the steps which are executed.
e.g
ksh -x script.ksh
+ test -f /proc/mounts
+ /bin/ls -l /proc/21326/exe
+ is=ksh
+ test ksh = ksh
+ test -s /etc/ksh.kshrc
+ . /etc/ksh.kshrc
+ trap 1 2 3
+ who am i
+ awk {print $1}
+... (2 Replies)
Discussion started by: zooby
2 Replies
3. AIX
Is there a way I can execute an installp command in debug mode, so that I can see whats happening when a fileset is being installed or updated? (What files are being replace etc etc).
I have an installp command failing for unknown reason. (7 Replies)
Discussion started by: balaji_prk
7 Replies
4. Red Hat
I have a little dell running redhat server. it's getting ethernet traffic to console and /var/log/messages (up 60Mb) i can't seem to find where to turn it off!
any help would be greatly appreciated.
here's syslog:
here's a snip from the log:
Sep 28 21:34:08 zgarch_serv kernel: IN=eth0... (2 Replies)
Discussion started by: toferloafer
2 Replies
5. Programming
Hi,
I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created.
I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe... (2 Replies)
Discussion started by: ehari
2 Replies
6. Shell Programming and Scripting
Is there a way to see or print a sub code?
Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen.
So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined.
Also, if... (4 Replies)
Discussion started by: alex_5161
4 Replies
7. Programming
Is there any possibility of running the PHP script in a debug mode ?
If so, do i have to download any package? Any free downloads available?
Can anyone please guide me through? Am a newbie in PHP scripting.
Thanks in Advance! (1 Reply)
Discussion started by: vidhyaS
1 Replies
8. Shell Programming and Scripting
I have a shell program which calls a perl program.
I am running the shell program with command;
$ ksh -x <prog_name>
Inside the shell program, I am calling perl with warnings.
I want to capture the entire output as it comes on screen.
The command I tried is:
$ ksh -x... (1 Reply)
Discussion started by: som.nitk
1 Replies
LEARN ABOUT SUSE
tracepath
TRACEPATH(8) System Manager's Manual: iputils TRACEPATH(8)
NAME
tracepath, tracepath6 - traces path to a network host discovering MTU along this path
SYNOPSIS
tracepath destination [ port]
DESCRIPTION
It traces path to destination discovering MTU along this path. It uses UDP port port or some random port. It is similar to traceroute,
only does not not require superuser privileges and has no fancy options.
tracepath6 is good replacement for traceroute6 and classic example of application of Linux error queues. The situation with tracepath is
worse, because commercial IP routers do not return enough information in icmp error messages. Probably, it will change, when they will be
updated. For now it uses Van Jacobson's trick, sweeping a range of UDP ports to maintain trace history.
OUTPUT
root@mops:~ # tracepath6 3ffe:2400:0:109::2
1?: [LOCALHOST] pmtu 1500
1: dust.inr.ac.ru 0.411ms
2: dust.inr.ac.ru asymm 1 0.390ms pmtu 1480
2: 3ffe:2400:0:109::2 463.514ms reached
Resume: pmtu 1480 hops 2 back 2
The first column shows TTL of the probe, followed by colon. Usually value of TTL is obtained from reply from network, but sometimes reply
does not contain necessary information and we have to guess it. In this case the number is followed by ?.
The second column shows the network hop, which replied to the probe. It is either address of router or word [LOCALHOST], if the probe was
not sent to the network.
The rest of line shows miscellaneous information about path to the correspinding hetwork hop. As rule it contains value of RTT. Addition-
ally, it can show Path MTU, when it changes. If the path is asymmetric or the probe finishes before it reach prescribed hop, difference
between number of hops in forward and backward direction is shown folloing keyword async. This information is not reliable. F.e. the third
line shows asymmetry of 1, it is because the first probe with TTL of 2 was rejected at the first hop due to Path MTU Discovery.
Te last line summarizes information about all the path to the destination, it shows detected Path MTU, amount of hops to the destination
and our guess about amount of hops from the destination to us, which can be different when the path is asymmetric.
SEE ALSO
traceroute(8), traceroute6(8), ping(8).
AUTHOR
tracepath was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
SECURITY
No security issues.
This lapidary deserves to be elaborated. tracepath is not a privileged program, unlike traceroute, ping and other beasts of this kind.
tracepath may be executed by everyone who has some access to network, enough to send UDP datagrams to investigated destination using given
port.
AVAILABILITY
tracepath is part of iputils package and the latest versions are available in source form from anonymous ftp ftp://ftp.inr.ac.ru/ip-rout-
ing/iputils-current.tar.gz.
iputils-021109 09 iINAON 2002 TRACEPATH(8)