Heidi Ng wrote:
> Hi,
>
> I just found out about this Cron.pm module in Perl and would like to
> use it to schedule to run my perl scripts (I think the syntax is
> right.. I was hoping to run it to see what it does.) Anyway, I
> installed Cron.pm v1.5 and was trying to run the following script.
>
[snip]
>
> But I got the following error: "POSIX::setsid not implemented on this
> architecture at C:/usr/site/lib/Schedule/Cron.pm line 502."
>
> I am running Perl v5.8 on WinXP Home.
setsid() is a UNIX thing executed by processes to detatch from the
controlling tty. You probably don't need it, but you should contact the
maintainer of Schedule::Cron to see if the module can be made
Win32-friendly. He or she might need to wrap setsid in an eval() or a test
for the Win32 platform. It's feedback like this that improves the quality of
modules, since the authors typically don't have access to each and every
platform.
As a workaround, you might be able to define a dummy setsid. At the bottom
of your script, put the following:
package POSIX;
sub setsid { }
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]