in reply to Re^4: Continuous or timed?
in thread Continuous or timed?
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 '.';?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Continuous or timed?
by haukex (Archbishop) on Dec 14, 2020 at 16:50 UTC | |
by stevieb (Canon) on Dec 14, 2020 at 16:59 UTC | |
by Bod (Parson) on Dec 14, 2020 at 17:30 UTC | |
by Bod (Parson) on Dec 14, 2020 at 17:13 UTC | |
by stevieb (Canon) on Dec 14, 2020 at 17:19 UTC |