in reply to problem with Schedule::Cron

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");

s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&