http://www.perlmonks.org?node_id=99963


in reply to Re: How to automatically execute a perl file....
in thread How to automatically execute a perl file....

No longer necessary. If perl is in the PATH, and PATHEXT contains the .pl type, then you should be able to type
myscript
and have the thing work.

Incidentally I had some trouble with the command line to execute in the NT task scheduler. Here's what I'm actually using

C:\WINNT\system32\CMD.EXE /c "perl w:\Admin\scripts\end_of_day.pl 1> +w:\logs\eod.log 2>w:\logs\eod.err "
(Notice that I don't practice what I preach :))

Replies are listed 'Best First'.
Re: Re: Re: How to automatically execute a perl file....
by sprakash (Acolyte) on Jul 26, 2001 at 18:28 UTC
    Thanks a lot guys for all your help. I really appreciate it!! Have a good day :-) Surya