Solved

Is there a monitor program?

Posted on 1997-11-20
1
221 Views
Last Modified: 2013-12-27
As a common user under Sun OS, is there a program that
can "repeatly" do "who" and "ps" , and report to me. So
I know who is on and what he is doing.
Thanks.

0
Comment
Question by:xzhang
1 Comment
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 30 total points
Comment Utility
Option 1)
get tcsh installed on your machine.
ftp.win.tue.nl:pub/unix/tcsh*

sample usage:
set tperiod=1
alias peridoic checkusers

This will cause the program checkusers to be run every 1 minute
and output to your screen. checkusers can have your who and
ps stuff in it.

Option 2)
use cron to get the info and mail it to you
run your checkusers program out of crontab every minute and
mail info to you when somebody is doing whatever you are looking
for:

0-59 * * * * checkusers

Option 3)
Write a shell script that has an infinite loop that does this
and run it in the background
#!/bin/sh

while /bin/true
do
      who ; ps
done

many more ways to do this...

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now