Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    oz
    oz is offline
    forum.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.html
    oz

    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.

Posting Permissions

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