Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Backgrounding a scheduled task

by Corion (Patriarch)
on Aug 05, 2006 at 22:00 UTC ( [id://565821]=note: print w/replies, xml ) Need Help??


in reply to Backgrounding a scheduled task

Start it with wperl.exe instead of perl.exe, assuming that you have ActiveState Perl.

Your users still can kill this task via the task manager or other programs if they have the according privileges. You should consider running your programs as a different user than the logged on user if you want to prevent that.

Replies are listed 'Best First'.
Re^2: Backgrounding a scheduled task
by beretboy (Chaplain) on Aug 05, 2006 at 22:04 UTC
    Iam using ActiveState, and I actually tried the wperl suggestion (someone told me earlier in the CB) and it doesn't seem to work. I get a "Could not start" message when I schedule the following task: wperl C:\bootscript\bootscript.pl Thanks for reminding me to run this as a different user, I've done that now.


    "Sanity is the playground of the unimaginative" -Unknown

      Perhaps a silly question, but is wperl.exe on the path and accessable to the user?


      DWIM is Perl's answer to Gödel
        Not silly at all, but no, that is not the problem, I've tried it with the full path and tested it on the command line.


        "Sanity is the playground of the unimaginative" -Unknown

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found