Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tail -NN /var/adm/sulog

Status
Not open for further replies.

hfaix

MIS
Nov 25, 2003
596
US
Can the sulog be copied over while it is in use? I have several processes, including /usr/lib/errdemon and /usr/sbin/qdaemon, returned when I do a fuser -cx /var/adm/sulog. If I tail sulog to file2 and mv file2 to sulog will I be creating conflict because the sulog is already "connected" to.
 
I don't know if I get you but it should work:

cp sulog sulog2

> sulog

cat sulog2 >>sulog


 
The "-c" flag for fuser causes it to list any process having any file open on the same filesystem as the file you're checking.

You're seeing errdemon and qdaemon because they have other files in the /var filesystem open. They don't have any use for sulog. If you have lsof installed, you can confirm this by checking the open files for each of those processes. Simpler yet, just drop the "-c" from your fuser command.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
ogniemi, I know that will work for the file changing. I'm actually wondering about the processes tied to the sulog file. I didn't want to remove entries in sulog if they were still somehow associated with a running process.

Thanks RodKnowlton. I'll check that out. That sounds right.

Thanks to both of you for your input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top