Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Win32::Taskscheduler failed to install on win7

by Corion (Patriarch)
on Jul 27, 2011 at 09:46 UTC ( [id://916983]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Win32::Taskscheduler failed to install on win7
in thread Win32::Taskscheduler failed to install on win7

Most likely, your program ("tap.pl") depends on getting launched with the current directory being C:\Perl64\bin. You could try to debug this by launching it with the full path from the directory:

cd C:\Perl64\bin perl -w C:\Perl64\bin\tap.pl

If the program expects to be launched from that directory, either change it or launch it from that direcctory.

Replies are listed 'Best First'.
Re^6: Win32::Taskscheduler failed to install on win7
by mkhan (Sexton) on Jul 27, 2011 at 10:16 UTC
    After some trial and error, it turns out guys were right.
    There is no strict need of a .bat or .exe file.
    The problem was as mentioned in my last post. Windows couldn't run them from any other directory than C:\Perl64\bin .

    What I did was a simple workaround. I first make my scheduler to change directory to C:\Perl64\bin and in the same command I run tap.pl. Oh and I'm using "at" command btw.
    $status = `at 3:09 cmd /c cd C:\\Perl64\\bin&tap.pl`;
    It works. Further discussion/suggestions are welcome.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-24 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found