in reply to using perl script to schedule windows task
Without seeing any code all I can do is guess.
My guess is that you are opening your logfile with a relative path name, like:
open my $log_fh, './log/mylogfile.log' or die $!;
But when your task runs, the current directory is not what you think it is.
Alternatively, you are running your task under the SYSTEM account and try to wite to a network drive. The local account is not allowed to write to network drives.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using perl script to schedule windows task
by ytjPerl (Scribe) on Aug 04, 2017 at 16:58 UTC | |
by poj (Abbot) on Aug 04, 2017 at 17:44 UTC |