Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Running a Net::SFTP::Foreign script from cron

by uzzikie (Sexton)
on Jun 15, 2011 at 03:18 UTC ( [id://909694]=note: print w/replies, xml ) Need Help??


in reply to Re: Running a Net::SFTP::Foreign script from cron
in thread Running a Net::SFTP::Foreign script from cron

For Windows users, the process is slightly more convoluted.
Seems like setting ssh_cmd => $sshcmd still results in a "Unable to connect: Connection to remote server is broken" error.

My solution to this was to create a ".bat" batch file which contains the command to execute the script perl "D:\Projects\sftp.plx"
Then using "Scheduled Task" to run the above batch file under a user account which can see the path specified in $ssh_cmd

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-12-07 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (49 votes). Check out past polls.