poweroff remote PC

2004-01-20 Thread perlrw
Does anyone know of a way to power off a remote computer (Win 2K)? I've tried "Win32::InitiateSystemShutdown ($MACHINE,30,0,1)" but that leaves the PC in a "It is now safe to turn off your computer" state. This doesn't do me much good if I have to go out and manually power them off, then on aga

Win32::SerialPort to log file

2003-12-12 Thread perlrw
I'm trying to get a script to save a barcode scanner's output to a log file. I've been trying to use Win32::SerialPort and my script has begun to slip into a "grasping at straws" state of disarray. I found a script by Bruce S. Garlock that I thought would do about what I wanted. Here's what it's