RE: How to make a script run in the background on a Win32 machine

2001-07-11 Thread Tillema, Glenn

 From: Mark Ross [mailto:[EMAIL PROTECTED]]
 Subject: How to make a script run in the background on a Win32 machine
 
 [---8--- Run script in the background on a Win32 machine --8--]

Mark,

I like to use Fire Daemon; http://www.firedaemon.com/. Fire Daemon helps
you set up Perl scripts as services.

Glenn Tillema  [EMAIL PROTECTED]
ADC Telecommunications, Inc. 
PO Box 1101, MS 508
Minneapolis, MN  55440-1101
Learn about ADC - The Broadband Company - www.adc.com



How to make a script run in the background on a Win32 machine

2001-07-10 Thread Mark Ross

Hi all,

I was hoping someone could point me in the right direction. I have a script
that will run for long periods of time (checking a url every once in a while
to make sure it is up) on a Windows98 machine. The script works fine, but it
runs in a dos window. Is there a way in which I could invoke the script and
have the dos window with the script running in the background?

I'm not even sure where to try to look to find out how to do this myself ...
any direction on where I could go?

Thanks,
--Mark.





Re: How to make a script run in the background on a Win32 machine

2001-07-10 Thread Morbus Iff

I was hoping someone could point me in the right direction. I have a script
that will run for long periods of time (checking a url every once in a while
to make sure it is up) on a Windows98 machine. The script works fine, but it
runs in a dos window. Is there a way in which I could invoke the script and
have the dos window with the script running in the background?

You could try the following:

   use Win32::GUI;

   # hwnd is a handle to a window - basically, window's
   # way of keeping track of it's program windows...
   $hwnd = GUI::GetPerlWindow();

   # comment this to see error messages in a dos window
   # otherwise, this will hide the blasted thing...
   GUI::Hide($hwnd);

-- 
  ICQ: 2927491  /  AOL: akaMorbus
   Yahoo: morbus_iff/  Jabber: [EMAIL PROTECTED]
   [EMAIL PROTECTED]   /   http://www.disobey.com/