|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Removeing Contents of the Trace File |
« View previous topic :: View next topic » |
Author |
Message
|
dsmq |
Posted: Wed Sep 18, 2002 7:05 am Post subject: Removeing Contents of the Trace File |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
Hi
I am trying to remove the contents of the trace file using unix shell script.
the command i used in unix is
mv oldfile newfile1
where oldfile is the file name in my trace node.Once i ran the script MQSI is not writing the logs into the oldfile ,its writing into the newfile which in not in my trace node
Can anybody help me in this.
Thanks |
|
Back to top |
|
 |
philip.baker |
Posted: Wed Sep 18, 2002 7:19 am Post subject: |
|
|
 Voyager
Joined: 21 Mar 2002 Posts: 77 Location: Baker Systems Consulting, Inc. - Tampa
|
If you don't need the contents of the 'oldfile', you may try using 'cp /dev/null oldfile'. If that doesn't work, you may have to stop and start the flow that is using the trace file. |
|
Back to top |
|
 |
kirani |
Posted: Wed Sep 18, 2002 7:26 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
When you move the file while message flow is running, the broker will continue to write messages into new file (newfile1). This has to do something with the file handle.
To correct this problem please follow Philip's instructions. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
dsmq |
Posted: Wed Sep 18, 2002 7:55 am Post subject: |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
cp /dev/null oldfile Worked
Thanks |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|