What are the characteristics that you're using to identify that it runs at the CLI but not from cron?
It writes a timestamped line to a logfile very close to the beginning of the script.
The logfile uses an absolute path.
#!/usr/bin/perl use lib '.'; use Curtains::Control; use Bod::Config; use strict; my $DEBUG = 1; my $control = Curtains::Control->new; $control->log("Starting Curtain Controller") if $DEBUG;
Could the location of the modules be an issue here as I've added use lib '.';?
In reply to Re^5: Continuous or timed?
by Bod
in thread Continuous or timed?
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |