in reply to Re: Net::SCP under Windows task scheduler failed
in thread Net::SCP under Windows task scheduler failed


my test script works fine
I run it on the Windows command shell and it does what it's suppose to do, i.e. scp a file from a remote unix server to my windows. That works fine.
But I need this to run as a windows 7 task. And that does not work. I suspect being a problem with the ssh key. How can i force net::scp to use a specific id_rsa file? is there anything like -i "my_id_rsa_file" option?

I haven't seen anything in that sense

Maybe missed something.
  • Comment on Re^2: Net::SCP under Windows task scheduler failed

Replies are listed 'Best First'.
Re^3: Net::SCP under Windows task scheduler failed
by siriche (Initiate) on Nov 13, 2013 at 14:26 UTC

    OK resolved !

    The task scheduler under Windows 7 has a tab "Actions"
    This tab has three fields
    The field 'Program/script:' is pretty obvious it should contain "perl"
    The field 'Add arguments' should contain the script "test.pl"
    And the field 'Start in' should contain the absolute path where your argument/file is,so in my case something like "D:\my\path\"

    To whom it may serve