Check the documentation:
The run method returns the pid of the detached process; alternatively you can specify a file for it to write the pid to:
# Start scheduler, detach from current process and # write the PID of the forked scheduler to the # specified file $cron->run(detach=>1,pid_file=>"/var/run/scheduler.pid");
In reply to Re: problem with Schedule::Cron
by muntfish
in thread problem with Schedule::Cron
by riddimak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |