CS476/576

Assignment #1

Due Midnight, Wednesday   Sept  26, 2007


Write a shell script (in any shell you like)  with the following descriptions:

NAME


NoLog -   Find users who did not recently login to UNIX hosts

SYNOPSIS

NoLog   <hostlist_file> [<output_file>]

DESCRIPTION

This comand is used to gather information about users who did not recently login  to any  UNIX host listed in <hostlist> .
Some of the UNIX hosts where any user may login are:

 

andromeda

cash

dilbert

hydra

isis

ra

tango

 

The information about each user is in the form:

login_name:  full-name  (group)

If the user does not specify an <output_file>

the program uses  <stdout>  to display its output.

Examples:

> NoLog  input 

(some of the output lines are listed below)

kalburgi: Vijay Kalburgi (faculty)

rao: Nageswara Rao (faculty)

yamany: Sameh Yamany (faculty)

                    aupton: alesia upton (student)

awill: andrew will (student)

lundquis: Ling Lin Lundquist (grad)

babu_s: Sean Babu (guest)

kumar: kumar sharshembiev (staff)

cs110: cs110 (class)

 

> NoLog  input  output

 

  SEE ALSO

rsh, last,  ypcat passed,  ypcat group