Is It possible to truncate webspeed log online??

taqvia

Member
Hi,

Is it possible to truncate webspeed logs online. I thought of doing it in the below manner but there seems to an issue
Copy the current log file to xxx.server.log and zip it.
cat /dev/null > broker-name.server.log

Once I do this the log file doesnt gets updated correctly.

Regards,

Arshad
 

Casper

ProgressTalk.com Moderator
Staff member
I think this should work (UNIX):

Code:
cp -p logfile newfilename
> newfilename
cp -p newfilename logfile

HTH,

Casper.
 

taqvia

Member
Thanks Casper for quick reply but it doesnt seem to work in my case although it shuld have worked .Anyways I have one more question. I have to restore a 300 g DB for some testing. I wanted to run it in BG but having some issues.

/*DBRESTORE.sh*/
#!/bin/ksh
prorest xxx /mnt/xxx.dump_db

I just wanted to run the above script using the below command
nohup DBRESTSORE.sh &

I would expect this to run in BG even if i logout but as soon as i logout the process stops. Is there any progress limitation.

Arshad
 

TomBascom

Curmudgeon
You should start a new thread for a new topic ;)

The behavior that you see is not a Progress issue. Your shell is causing it. Any command that you put into the background will suffer the same fate.

I'm guessing that you're running ksh. One quick work-around might be to type "sh" and start a bourne shell prior to the prorest.

Start that new thread if you still want to discuss it ;)
 

taqvia

Member
Thanks a Lot Tom :) It worked !!

Small things can make huge difference I could have never thought that ksh is an issue here.
 
Top