Results 1 to 2 of 2
I was not able to figure this assignment out...any comments will be helpful. The problem is: write a bash script called ison to determine if a particular user is logged ...
- 09-22-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 1
Unix Problem
I was not able to figure this assignment out...any comments will be helpful. The problem is: write a bash script called ison to determine if a particular user is logged on or not. Pass the username as a command line argument to your script and have it print out a message indicating whether or not that particular user is currently logged in. The output might look like:
ison username1
username1 is logged in
ison username2
username2 is not currently logged on
*Dont report that bob is logged in if in fact bobby is logged in.
- 09-22-2009 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
Welcome to the forums!
Very sorry, but it's against the forums rules to post homework questions:
http://www.linuxforums.org/forum/lin...ums-rules.htmloz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.


