Solved

Is there a monitor program?

Posted on 1997-11-20
1
227 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
ID: 2007904
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
non-interactive authentication of sftp command in AIX 5.3 15 189
Move nodes from one TSM to another. 3 61
UNiX Script filesystem space usage Part2 54 79
Python Assistance 7 73
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…

867 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

16 Experts available now in Live!

Get 1:1 Help Now