Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Is there a monitor program?

Posted on 1997-11-20
1
Medium Priority
?
237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 120 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

604 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