beer9
asked on
How to use prstat within crontab?
Hello, I would like to track the memory usage of a given application over a period of time and I would like to put a crontab which would check the memory utilization every day.
But it does not work as it is interactive.. Kindly help me to put prstat in crontab in Solaris. Thanks!
* * */1 * * /usr/bin/prstat -p 8392 >> /tmp/8392
But it does not work as it is interactive.. Kindly help me to put prstat in crontab in Solaris. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you! :-)
You should consider using a script that assembles the PIDs of interest to you.
Other items such as vmstat, iostat ps -ef among other parameters might be something you want to collect at the same time.