in reply to Can Win32::Scheduler Module used to schedule a remote host?

The first thing is the remote computer name should be a UNC (eg.\\remoteHost) not an IP.

Next, you should be checking the return values of the method calls. They would probably go a long way to identifying what is going wrong.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"
  • Comment on Re: Can Win32::Scheduler Module used to schedule a remote host?

Replies are listed 'Best First'.
Re^2: Can Win32::Scheduler Module used to schedule a remote host?
by muralidharan (Novice) on Feb 10, 2010 at 04:29 UTC

    Thank you for your reply!!!!!!!! Actually the remote go grid server doesn't have a UNC. It is usually connected from here through the remote desktop connection (mstsc) with its IP. And moreover, even if we give the UNC, where should i give the user name and password?? The username and password i'm giving in the code is for scheduled task.

    Thank You.

      Under the normal MS scheme of things, connections to remote machines are done under the credentials of the userid that runs the code. Ie. Whatever id you run your script under will need to be authorised to connect to the remote machine on which you are hoping to schedule the task.

      Whether Win32::Scheduler operates that way I don't know, but it seems likely.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        Oh!!! Thats really new to hear.. I thought Username and password should be given exclusively.. Ok thank you so much BrowserUK... Will try it out now :-)

      \\173.1.105.147 (And don't forget to escape the backslashes in the string literal.)