Find the answer to your Linux question:
Results 1 to 3 of 3
I need to write a script that will take 1 command line argument. The argument will be a username. The script will determine if the user exists on the system ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    making a 1 command line argument

    I need to write a script that will take 1 command line argument. The argument will be a username. The script will determine if the user exists on the system and will print an error if it does not. If the user does exist it will determine if the user is currently logged in, if the user is not logged in it will determine the last time the user logged in and display the file in the users home directory that was most recently modified.

    any thoughts?

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    man id
    man who
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    Home work questions are specificaly mentioned in the forum rules as being not acceptable. You should consult google, the man pages, the info pages, and your teacher for assistance with homework. The excercises are there to help you learn how to do things for yourself, you should use every resource available to you to get things done before seeking help from others.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...