i have the following issue:
I try to start a perl script from the windows scheduler through cygwin
Steps i do: Call process.bat file In the process.bat i call bash with the parameter for the perl script
Symptoms: If i call "perl scriptpath" directly from cygwin it works like a charm If i call the script from the windows cmd with bash it will not work.
Command: C:\cygwin\bin\bash.exe --login /cygdrive/c/scripts/testscript.pl It prints the following:
Line 3: use: command not found
Line 4: use: command not found
Can't find file Test
Script:
#!/usr/bin/perl
use strict;
use warnings;
print "Test";
Probably i'm making only a small mistake and cannot see it. It seems to interpret it with the windows cmd instead of the perl.