Solved

Is there a monitor program?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
why my ssh-ldap-helper and ssh-ladp-wrapper files are missing on a new AWS instance? 24 320
Python Assistance 7 81
unix example issues 18 90
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

810 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