Jump to content

Monitor Script


greendixy

Recommended Posts

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

Link to comment
Share on other sites

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 by Infiltrator
Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

You could run a windows box on a VM set up.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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... =(

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...