The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-31-2008
anything anything is offline
Registered User
 

Join Date: Jan 2008
Posts: 6
script check the users in SHELL ?

could you please find a solution for this

script that checks if any of a list of users given on the command line is logged in. For each user the script should say whether this user is logged in or not. The script prints an error message if no parameter is given. And ask the user to enter a name and then the script check again for this user. check if the given name has an account on system or not by check if the given name exists in file /etc/passwd or not.

I really dont know how to do it special i am newer on it, and kind of help will be nice
Reply With Quote
Remove advertisements
!!
Forum Sponsor