02-11-2008
Debug env for long time use
Hi,
I'm pritty new to C, but a recent bug in a program i've been using has forced me to debug it. But I am unable to find a debugger that can act as a layer between the OS and the program to see whats going on..
The problem is that this piece of software makes a connection through localhost to another program. That connection randomly times out for a reason that is unclear to me.. All other connections remain online.
Is there any softwarepackage availible that can run this program for multiple days till the error occures, while remaining to log all input and output of this program? (like memory usage, input through network,...)
EDIT: I'm using PCLinuxOS 2007 at the moment, but the software is due to run on CentOS 5.*.
Thanks!
Last edited by nephilimbe; 02-11-2008 at 07:29 PM..
Reason: Forgot to mention OS
10 More Discussions You Might Find Interesting
1. AIX
Every evening I run a script in AIX production box, which executes below command:
rcp prod_bkup.tar prodapp@IP:/data/appl/prod
This will rcp a backup of around 11 GB from production to another machine (runs every evening so overwrites previous one). Just to keep the backup safe. Since 2-3 days,... (0 Replies)
Discussion started by: panchpan
0 Replies
2. UNIX for Dummies Questions & Answers
Hello,
like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module.
/Best Regards Olle
---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ----------
For... (0 Replies)
Discussion started by: ollebanan
0 Replies
3. Shell Programming and Scripting
Dear everyone...
thanks to this forum I am able to do everyday more and more complex scripts...but now I come up with problem with optimisation..
problem 1 - optimise:
here is my code:
while read number
do
nawk -F "|" -v... (8 Replies)
Discussion started by: abdulaziz
8 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
We have 20 jobs are scheduled.
In that one of our job is taking long time ,it's not completing.
If we are not terminating it's running infinity time actually the job completion time is 5 minutes.
The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies
5. Shell Programming and Scripting
Dear experts
I have a 200MG text file in this format:
text \tab number
I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways?
I dont want to split the file since this one is already splitted.
I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies
6. Shell Programming and Scripting
echo "1337124526" | perl -pe 's/(\d+)/easttime($1)/e'
the above gives a date and time.
how can i subtract the date and time given by this command, from the current present date?
can this be a one liner or as close to a one-liner as possible? (1 Reply)
Discussion started by: SkySmart
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
All the data are kept on Netapp using NFS. some directories are so fast when doing ls but few of them are slow. After doing few times, it becomes fast. Then again after few minutes, it becomes slow again. Can you advise what's going on?
This one directory I am very interested is giving... (3 Replies)
Discussion started by: samnyc
3 Replies
8. Shell Programming and Scripting
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Discussion started by: mohtashims
8 Replies
9. Shell Programming and Scripting
the following code works sometimes. other times, it behaves mysteriously. when the script sshs to a box, it is suppose to automatically begin running the command it is told to run. but in this case, after this script logs into a host, it just sits there at the prompt and does not run the... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. Shell Programming and Scripting
I was wondering if I could get some feedback on my script to grab time from our MDM... I blocked out all of the important stuff. I really appreciate any guidance, since I am long out of practice.
#!/bin/bash
serial=$1
# get last seen value of ipad
lastseen=$(curl -s -X "GET"... (11 Replies)
Discussion started by: andysensible
11 Replies
LEARN ABOUT SUSE
hal-lock
HAL-LOCK(1) General Commands Manual HAL-LOCK(1)
NAME
hal-lock - lock an interface
SYNOPSIS
hal-lock [options]
DESCRIPTION
hal-lock can be used to acquire a lock on a given interface either on a given device or globally. For more information about both the big
picture and the semantics of HAL locks, refer to the HAL spec which can be found in /usr/share/doc/packages/hal/spec/hal-spec.html depend-
ing on the distribution.
OPTIONS
The following options are supported:
--interface
The name of the interface to lock.
--run Program to run if the lock was acquired.
--udi The UDI (Unique Device Identifier) of the device object. If this is ommitted, the global lock will be tried.
--exclusive
Whether the lock can be held by others.
--exit-with-lock
Kill the program if the acquired lock is lost. This only makes sense if you pass a specific UDI due to the semantics of HAL locks.
--exit-with-dev
Kill the program if the device is removed. This only makes sense if you pass a specific UDI due to the semantics of HAL locks.
--help Print out usage.
--version
Print the version.
RETURN VALUE
This program will attempt to grab a lock on a given interface. Unless, a specific UDI is given, the global lock will be tried. If the
lock was succesfully acquired the program specified by the option --run will be run and upon termination this program will exit with exit
code 0. If the lock wasn't acquired or an error occured while taking the lock, this program will exit with a non-zero exit code and the
given program will not be run.
NOTES
This program is only useful for launching software that doesn't use HAL at all (since such software launched using hal-lock would be locked
out itself); for example a partition table editor part-foo may use wrapper script like this
hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run /path/to/part-foo-program
BUGS
Please send bug reports to either the distribution or the HAL mailing list, see http://lists.freedesktop.org/mailman/listinfo/hal on how to
subscribe.
SEE ALSO
hald(8), lshal(1), hal-get-property(1), hal-set-property(1), hal-find-by-property(1), hal-find-by-capability(1)
AUTHOR
Written by David Zeuthen <david@fubar.dk> with a lot of help from many others.
HAL-LOCK(1)