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 ...
- 06-08-2010 #1Just 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?
- 06-08-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
man id
man who0 + 1 = 1 != 2 <> 3 != 4 ...
Until the camel can pass though the eye of the needle.
- 06-08-2010 #3
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


