Solved

Is there a monitor program?

Posted on 1997-11-20
1
233 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ftpcommand 2 74
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 138
Write an app 10 74
Solaris acount issues 44 47
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

733 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