I am trying to figure out what is chewing up a bunch of CPU on our SunFire V120 Boxes and I am having a little trouble drilling down the source.
When I check the CPU usage it displays tail & cat as the top two processes
To get an idea of what arguments were being sent to cat I did a ps -ef | grep cat, which shows this.
Now these message files are massive, approx 150-200MB in size and we roll them up daily into messages.1 messages.2 etc etc up until .24
I am trying to determine which script and or file is initiating this cat against the message files, as it needs to be adjusted to simply look at messages and not the messages.x archived files.
I thought I could determine this by running lsof against the PID's, but I can't tell from these results if a script or a cron job somewhere is initiating the command.
What makes this harder is that I am coming into this brand new and I don't know the history of this box, so I'm not even sure why the message files are being processed, but I think it has to do with alarming.
Can anyone suggest a way or interpret the results to find out what is invoking this cat/tail command?
I've been thinking about a peculiar problem, and so far haven't been able to find out a convincing solution to that.
To put it simply, I have a shell script (assume it to be parent_script.sh), calling another shell script (child_script.sh) 5 times, in nohup mode to be executed in the background.... (3 Replies)
Hi All,
I'm just wondering how can i determined if there's a file in directory and put it in a logs?
dir="/home/test/"
Please advise,
Thanks,
Use code tags, thanks. (1 Reply)
Hello all,
Hopefully someone can point me in the right direction...
I have a script written in bash which is pretty basic and just stop/starts various services based on particular conditions. What I am trying to build is a reporting type function which will send out an email with various stats... (3 Replies)
A regular ebcdic mainframe tape usually contains header information the 1st three blocks of the tape. The header information tells the computer/user more information about what is on tape. The header info is 240 bytes in length at 80 bytes each header. The 1st block/header is volume name or... (1 Reply)
I am using tcsh
what could possibly be a problem, when using crontab to invoke a shell script. ?
The script has the read, write and execute permission to all users. And the script works as expected while executing it in stand-alone mode.
Is there a way to trace (like log) what error... (9 Replies)
HI guys,
:confused:i would like to know how can i determine
the total/approx memory used by a single user. Example Top output is below
===========================================================================
top - 20:00:50 up 24 days, 2:48, 2 users, load average: 0.43, 0.40, 0.37... (3 Replies)
Hi,
Is there any command that I can issue to check who is actively using my harddisk? I notice that yesterday the hdisk0 and hdisk1 is really actively being used and is reaching almost 100%. I realized that this is because of paging which is climbing up to 70%.
However, just this morning... (3 Replies)
Hello,
I am on a mission to determine the user of file. I have used the ls -l command but it displays permission, link, user, group, etc, but I just want to display just the name of user of a specified file.
Many thanks (4 Replies)
Hi,
Please let me know if anybody is having a solution handy for the below tasks...
It would be helpful if somebody can resolve my query. I am new to unix and oracle environment and looking for some online reference for completing a task.
Task:
Check if the network drive exists
Check... (0 Replies)
I'm writing a script that takes a filename as an argument, which determines the "file type" of the file. I want to know if there is any command I can use to determine if a file is ASCII type, thanks all for giving a help. (11 Replies)