chrisayres11 has asked for the wisdom of the Perl Monks concerning the following question:
Banging my head against the wall time
I have a PERL script that runs fine when I manually start it in a Mintty emulator window, but I want it to run from a Windows Scheduled Task
Manually in Minnty I start the script with
perl inventory.pl
My scheduled task action is
D:\cygwin\bin\mintty.exe d:/perl_scripts/Inventory.pl
But this comes back with the error
Can't exec "date": No such file or directory at d:/perl_scripts/inventory.pl line 71.
The rest of the script seems to run fine. Line 71 of the code is
my $date=`date +%d%m%Y`;why is this one line causing me problems
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CYGWIN Perl and Mintty
by roboticus (Chancellor) on Jun 13, 2014 at 15:08 UTC | |
|
Re: CYGWIN Perl and Mintty
by salva (Canon) on Jun 13, 2014 at 15:14 UTC | |
|
Re: CYGWIN Perl and Mintty
by Anonymous Monk on Jun 13, 2014 at 15:11 UTC | |
|
Re: CYGWIN Perl and Mintty
by chrisayres11 (Novice) on Jun 14, 2014 at 16:58 UTC |