| [reply] |
Could you care to elaborate? I see nothing in the node you point to that says "broken", only "bizarre." I've been using FindBin successfully for awhile now; can you give an example where it would break, especially in a script like this?
| [reply] |
I tried to use Win32::Daemon. I am using XP professional. Although I could install my perl script as a service, when I restarted my XP, the service never started. I checked the log in event viewer and it says
"Timeout (30000 milliseconds) waiting for the Directory Monitoring Service service to connect."
I tried running the example dirmon script from Dave Roth's site and it behaved in same way.
My questions are
1) has dirmon script from dave roth's site worked for anybody on XP Pro.
2) My XP does not have XP service pack 1 on it. Do I need the service pack installed for this to work?
3) Or have I completely missed something.
Thanks
Jeevan Savant
| [reply] |
Very interesting.
I prefer to compile my scripts with perl2exe and install the binary as a service. I've used instsrv and srvany, but I prefer to use the freely available FireDaemon. Get the v0.09 version -- the new version only supports 1 service without a registration code.
You might also consider Win32::Daemon for a pure-perl solution.
Update: Srvany.exe and instsrv.exe are part of the Windows NT 4.0 Resource Kit, available here.
Cheers,
ibanix
$ echo '$0 & $0 &' > foo; chmod a+x foo; foo; | [reply] [d/l] |
| [reply] |