in reply to Re^4: Win32::Daemon service doesn't reach RUNNING state
in thread Win32::Daemon service doesn't reach RUNNING state
Depending what it is that your actually trying to achieve, it could be as simple as:
P:\test>start /b perl -le"open LOG, '>', 'my.log'; select LOG; $|=1; print ~~localtime while sleep 10" 1>nul 2>&1 <nul P:\test>u:tail -f my.log Tue Sep 14 12:11:10 2004 Tue Sep 14 12:11:20 2004 ^C
The "one-liner" (here split across multiple lines to avoid wrapping) could be just about any perl script you like. It runs in the background, has it's STDIN, STOUT and STDERR redirected to the nul device and will continue to run until terminated through the task manager or other mechanism.
Proc::Daemon does a couple of other things--changing the umask (whatever that is) etc.-- but nothing that you cannot easily do yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Win32::Daemon service doesn't reach RUNNING state
by zejames (Hermit) on Sep 14, 2004 at 12:23 UTC | |
|
Re^6: Win32::Daemon service doesn't reach RUNNING state
by zejames (Hermit) on Sep 14, 2004 at 14:50 UTC | |
by BrowserUk (Patriarch) on Sep 14, 2004 at 16:45 UTC | |
by ikegami (Patriarch) on Sep 14, 2004 at 16:58 UTC |