I am a new perl programmer and I am trying to write a script that will (sitting on my domain controller) read in a text file that has a list of computer names. This file will be in the same directory as my script. I would like the script to check each computer, see if a user is logged on or not, and append the findings to a text file. If a user is logged on and write the computername and user's ID in this file. If no one is logged on the computer, it would just write the computername with a message like "No user logged on." Would you be able to point me in the right direction? I looked for examples on the web site but couldn't find anything. I am so new to writing perl I might have over looked something.
Thanks for any assistance anyone could share.
Devon22