Use ‘watch’ command with pipe (with simple process monitor example)By neokrates, written on June 22, 2010 |
bash snippet |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Which virtualization do you like most?
- I don't use virtulization (100%, 5 Votes)
- VM Ware (0%, 0 Votes)
- Virtual Box (0%, 0 Votes)
- Parallels (0%, 0 Votes)
- coLinux (0%, 0 Votes)
- Xen (0%, 0 Votes)
- OpenVZ (0%, 0 Votes)
- Something else (0%, 0 Votes)
Total Voters: 5
Loading ...
Most popular search terms:
Dump all java processes every 15 seconds. Log the result into processmonitor.log. Add timestamps.
watch -n 15 'ps -ef|grep java|grep -v grep >> file.res ; date >> processmonitor.log'
|
TAGS
|
|
SOCIAL
|


















