Without having seen your actual entries in the Task Scheduler, I guess that the problem stems from your way of calling the Perl script.
I guess that you put a direct link to the Perl script into the task entry - try replacing that with the path to Perl.exe and put the script as the first parameter after that:
"d:\perl\bin\perl.exe" "d:\scripts\test.pl" arg1 arg2 arg3
Then, the parameter passing should work.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
In reply to Re: How to set Parameter for a .pl in Windows Task Scheduler?
by Corion
in thread How to set Parameter for a .pl in Windows Task Scheduler?
by TeddyC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |