If you could link me to the source, I'd take a look.
Thank you, I don't know much about c so that'd be great.
The link is: www2.research.att.com/~gsf/download/tgz/ast-open.2011-02-08.tgz, username: "I accept www.opensource.org/licenses/cpl", password: ".". Inside the gz tar file the source is located in /src/cmd/warp.
The warp.sh file is probably written in ksh(? it doesn't have a #! thing how does it work?) but it's really easy to do manually.
Set the WARP variable to: "-b<start time> -f<time multiplier> <time offset>" where the start time is seconds from the unix epoch date and time offset is the number of seconds in the future. Then load the so file using LD_PRELOAD. I wrote a little bash script that works on my computer:
The first argument is the time multiplier. The second is the time offset in english ("-5 minutes", "now", "20:11"). The command and it's arguments follow that.
Edit: I have no idea what DYLD_INSERT_LIBRARIES and _RLD_LIST do but it sounded good.
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..
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)
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)
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)
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)
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)
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)
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)
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)
Discussion started by: yeazas
4 Replies
9. Post Here to Contact Site Administrators and Moderators