Running sftp from Windows task scheduler

5 posts / 0 new
Last post
itefix
Offline
Last seen: 2 weeks 5 hours ago
Joined: 01.05.2008 - 21:33
Running sftp from Windows task scheduler

I have a Dos batch file which executes sftp using the -b flag. The ftp commands are in a separate text file. This dos batch file is run from the Task Scheduler on Windows 2003.I have set the user id to be my network id which has admin rights on the server.
When this jobs runs from the task scheduler, I am getting an ff return code.
however, if I run the batch file manually, it executes okay.
I am running version 1.3.2
Any suggestions?

Terry

itefix
Offline
Last seen: 2 weeks 5 hours ago
Joined: 01.05.2008 - 21:33
Re: Running sftp from Windows task scheduler

What command syntax do you use when you launch sftp from the task scheduler ?

itefix
Offline
Last seen: 2 weeks 5 hours ago
Joined: 01.05.2008 - 21:33
Re: Running sftp from Windows task scheduler

"c:\Program Files\copssh\bin\sftp.exe" -b d:\ftp_script.ftp useid@server

itefix
Offline
Last seen: 2 weeks 5 hours ago
Joined: 01.05.2008 - 21:33
Re: Running sftp from Windows task scheduler

What is the working directory ? sftp needs to find ssh by using search path available during running batch files. If ssh is not available via default path, setting C:\Program Files\copssh\bin as working directory may help.
Try also to increase output verbosity (-v option) to see if some error messages are shown up.

itefix
Offline
Last seen: 2 weeks 5 hours ago
Joined: 01.05.2008 - 21:33
Re: Running sftp from Windows task scheduler

I am trying to do the same from windows to unix server. Can u send me the bat file that u used

Topic locked

Release announcements