Perl on Win32 Question.

Author Message
mcds99

  • Total Posts : 519
  • Scores: 4
  • Reward points : 0
  • Joined: 2/28/2006
  • Status: offline
Perl on Win32 Question. Wednesday, November 26, 2008 7:34 AM (permalink)
0
I have inherited a perl script that is supose to check to be sure a system is idle before it does reboots.
The only thing I have not figured out is the part where it checks if the system is really idle, and I have not found anything in the script
that does this check. There is the following but I really don't know what it means.
 
 $arg = shift(@ARGV);     # this is set before the code starts
  
 
 if ($arg =~ /debug/i)       # This is where it is used, it is in a sub.
 

 
does "/debug/i" check to see if a computer is idle? 
if it does is it checking for a duration of idleness?
 
I can post the whole script if needed but the script is really about logging the process.
Sam

Keep it Simple Make it Fun KiSMiF
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9