Hello -
I have a requirement to get the Memory(Xmx) and the activity name using it.
Sample input info :
Command running for the o/p:
Result looking from it (or something similar/meaningful):
Few pointers :
All these are running under process: rather
The memory is looking under value "Xmx"
always the activity name is after "/opt/rather/"
Hi,
I am confused about the output of find command.
Please see the two find commands below.
When i put "*.c" i get lots of files. But when i put *c only i get only one file.
Any answer??
$ find . -name "*c"
./clarify/cheval/hp_server/rulemanager/rulemansvc... (3 Replies)
when I do the find command from / , there are a lot of directories that I do not have access to and so I get
"find: cannot open ..."
How can I suppress these messages so only what was found is output.
I was thinking on
find / -name 'searchterm' | grep -v find
but this doesnt work
... (5 Replies)
I'm using the below command to list files older than 2 hours but it returns redundant output, am I missing something.
# find . -mmin +120 -exec ls -l {} \;
total 0
-rw-r--r-- 1 root system 0 Oct 13 09:52 test1
-rw-r--r-- 1 root system 0 Oct 13 09:52 test2
-rw-r--r-- 1 root ... (5 Replies)
Hi,
I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script.
I am planning to do like this:
if ; then... (2 Replies)
HI All,
Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command
I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Hi guys -
I am trying a small script to tell me if there is a file that exists less than 1k. It should report ERROR, otherwise the check is good.
I wrote this script down, however it never runs in the if/then statement. It always returns the echo ERROR.
MYSIZE=$(find /home/student/dir1... (8 Replies)
Hi All,
I wanted to show on stdout that a file was found right after it happens due to indicate the activity of long search. Further more I want to store the result of the find in a file.
I have tried this:
echo -n "Searching"
find . -name Makefile -type f -print -exec echo -n "." \; >... (16 Replies)
I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
PID USER ... (6 Replies)
Discussion started by: RHCE
6 Replies
LEARN ABOUT DEBIAN
sentinella
SENTINELLA(1) User Commands SENTINELLA(1)NAME
sentinella - System monitor that can react to user chosen conditions
SYNOPSIS
sentinella [Qt-options] [KDE-options] [options]
DESCRIPTION
Action launcher based on system activity
Generic options:
--help Show help about options
--help-qt
Show Qt specific options
--help-kde
Show KDE specific options
--help-all
Show all options
--author
Show author information
-v, --version
Show version information
--license
Show license information
-- End of options
OPTIONS -s, --start
The condition will be run immediately.
Condition options:
--cpu <percentage>
CPU load measurement. Use in combination with --during, --lower or --higher.
--memory <megabytes>
Memory usage in megabytes. Use in combination with --during, --lower or --higher.
--network <kb>
Network traffic in kilobytes/second. Use in combination with --interface, --during and --lower or --higher.
--date-time <value>
Current date and time condition. The format should be: YYYY-MM-DDTHH:MM:SS
--program-dies <pid>
The condition will be met when the process of id <pid> dies.
-h, --higher
The condition will be met if the system's activity is higher than your chosen value.
-l, --lower
The condition will be met if the system's activity is lower than your chosen value.
-d, --during <time>
The time during the condition must be met to throw the action. Format: MM:SS.
-i, --interface <name>
Sets the name of the network interface to monitor when using the --network parameter.
Action options:
--shutdown <force>
Shutdown the computer when the condition is met. <force> values are 'yes' or 'no'.
--reboot <force>
Reboot the computer when the condition is met. Possible values for <force> are 'yes' or 'no'.
--sleep <mode>
Place computer in sleep mode when the condition is met. Possible values for <mode> are 'Standby', 'Suspend' or 'Hibernate'.
--execute-command
The command will be read from stdin.
--terminate-program <pid> It will try to terminate the program specified by <pid>.
sentinella 0.9.0-3 November 2011 SENTINELLA(1)