greendixy Posted June 13, 2010 Share Posted June 13, 2010 Here is a monitor script i use, To monitor the services running and from what user. while true do clear ps aux | head -n 1 ps aux | egrep "egg" | grep -v grep sleep 15 done Where you see "egg" You can change it to what ever one you want. "name1|name2|etc" using | you can add more processes. If you want it to update faster just change "Sleep 15" to a lower number. Going threw old codes will give more out soon Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted June 14, 2010 Share Posted June 14, 2010 (edited) Hi Greendixy, Here is my windows version of your monitor script. @echo off :loop tasklist /FI "USERNAME ne NT AUTHORITY\SYSTEM" SLEEP 10 goto loop I slightly modified it, so it displays the processes running, along with the username and some other info. However I am still working on the user filtering bit, so it can display what process is from what user. Regards, Infiltrator Edited June 14, 2010 by Infiltrator Quote Link to comment Share on other sites More sharing options...
greendixy Posted June 14, 2010 Author Share Posted June 14, 2010 @Infiltrator Cool would test it out, But non of my computers run windows. All 4 desktops, And my laptop run's Linux. The code i have had on cd for ages, Wen't threw them all and found it. So thought it might be some use to someone. I got lots more, But i think i will just upload it to my website. Will post link soon, Once i get it updated and files added. Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted June 14, 2010 Share Posted June 14, 2010 You could run a windows box on a VM set up. Quote Link to comment Share on other sites More sharing options...
greendixy Posted June 14, 2010 Author Share Posted June 14, 2010 eww windows lol j/k nah i dont trust/like windows i have been on linux way to long to switch back Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted June 14, 2010 Share Posted June 14, 2010 eww windows lol j/k nah i dont trust/like windows i have been on linux way to long to switch back Good decision bro, stay with Linux you will benefit more. Quote Link to comment Share on other sites More sharing options...
HacDan Posted June 15, 2010 Share Posted June 15, 2010 I don't like to run Windows either, but, when it comes to work, well. Let's just say I haven't completely converted them yet... I use pretty close to the same script that you(infiltrator) posted at work. I may not like working on a Windows box, but, such is life when it comes to work... =( Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted June 15, 2010 Share Posted June 15, 2010 I don't like to run Windows either, but, when it comes to work, well. Let's just say I haven't completely converted them yet... I use pretty close to the same script that you(infiltrator) posted at work. I may not like working on a Windows box, but, such is life when it comes to work... =( What distro do you work on? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.