Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to automatically execute a perl file....

by MZSanford (Curate)
on Jul 26, 2001 at 12:33 UTC ( [id://99916]=note: print w/replies, xml ) Need Help??


in reply to How to automatically execute a perl file....

as a side note, if you are using the at scheduler, or the scheduled tasks, i do not know how they will take to the command line of `perl myscript.pl`, so you may need to run it through pl2bat first.
Thus spake the Master Programmer:
"When you have learned to snatch the error code from the trap frame, it will be time for you to leave."
-- The Tao of Programming
  • Comment on Re: How to automatically execute a perl file....

Replies are listed 'Best First'.
Re: Re: How to automatically execute a perl file....
by Tyke (Pilgrim) on Jul 26, 2001 at 17:27 UTC
    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 :))
      Thanks a lot guys for all your help. I really appreciate it!! Have a good day :-) Surya

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99916]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found