Good, I have something that might work, a version of libkeepalive which I modified to overload the sleep/usleep/gettimeofday calls instead of socket calls.
I modified the 'test' program to do 11 loops of 1 second each. The FRAC fraction is used to change what 'one second' means to the program by overloading the sleep/gettimeofday calls.
Like the AT&T program you linked, it overrides some libc calls to do so. That's what the LD_PRELOAD is for -- to make sure it gets loaded before libc does.
Last edited by Corona688; 11-06-2011 at 09:48 PM..
Hi,
Since last week our server become too slow when we try to run application on it. When we run top command, it show as below:
So it's nothing to do with heavy utilization, right? Can you give some opinion on what actually had happended?
Thank you very much... :b: (4 Replies)
Hello.
I have a slackware system running cups with an HP laserJet 2100 connected via parallel port in ECP mode. Print jobs are working. Very slowly.
15K test print out of cups takes about 2 minutes to complete.
When the printout is on the way to the printer, the process "parallel" uses... (0 Replies)
only the Tomcat serving ones. An oracle zone on the same global zone responds instantaneously. Running netstat results in a long wait. Cannot deploy builds with Jenkins to these web servers. Thoughts? (2 Replies)
I have numerous (hundreds) of data files with various values in each file. The values are 1 per line, and identified by the fieldname in the 1st field in the line, which is delimited from the actual field value by a colon. So an example from one of the files looks like this:
NAME: Bob Jones... (2 Replies)
I have many files which contain about two million lines.
Now I want to use sed to delete the 9th line and add a new
line behind the 8th line. I use the command as follows:
for((i=1;i<100;i++));
do
echo $i;
sed -i '9d' $i.dat;
sed -i '8a this is a new line' $i.dat;
done
But it is... (3 Replies)
Hi,
This thread has been posted before on linuxquestions.org, but no answer, maybe because this is unix question and not linux. I'm posting the same thread here, hope I can get an answer from someone in the meantime, I wish I could post of emergency thread but it needs bits which I don't have :... (6 Replies)
Hi everyone,
I'm working on continous integration with Jenkins.
I’m facing an issue while connecting a slave (solaris sparc 8) with Jenkins ver. 1.532.2
This slave is connected via the option “Launch slave via execution of command on the Master”.
Connection is established with:
-... (1 Reply)
Gents,
Please can u help me to improve this script to be more faster, it works perfectly but for big files take a lot time to end the job..
I see the problem is in the step (while) and in this part the script takes a lot time..
Please if you can find a best way to do will be great.
... (13 Replies)
Discussion started by: jiam912
13 Replies
LEARN ABOUT DEBIAN
tsocks
TSOCKS(1) General Commands Manual TSOCKS(1)NAME
tsocks - Shell wrapper to simplify the use of the tsocks(8) library to transparently allow an application to use a SOCKS proxy
SYNOPSIS
tsocks [application [application's arguments]]
or tsocks [-on|-off]
or tsocks
DESCRIPTION
tsocks is a wrapper between the tsocks library and the application what you would like to run socksified.
OPTIONS
[application [application's arguments]]
run the application as specified with the environment (LD_PRELOAD) set such that tsocks(8) will transparently proxy SOCKS connec-
tions in that program
[-on|-off]
this option adds or removes tsocks(8) from the LD_PRELOAD environment variable. When tsocks(8) is in this variable all executed
applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like
this: "source /usr/bin/tsocks" or ". /usr/bin/tsocks"
Example:
". tsocks -on" -- add the tsocks lib to LD_PRELOAD (don't forget the leading dot!)
". tsocks -off" -- remove the tsocks lib from LD_PRELOAD (don't forget the leading dot!)
[-show|-sh]
show the current value of the LD_PRELOAD variable
<without any argument>
create a new shell with LD_PRELOAD including tsocks(8).
SEE ALSO tsocks.conf(5)tsocks(8)AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the debian package of tsocks. It (along with this manual page) have since been
adapted into the main tsocks project and modified.
TSOCKS TSOCKS(1)