troubleshooting Question

Issues automating a psftp batch file

Avatar of sportzzphann
sportzzphann asked on
Server Software
6 Comments1 Solution7899 ViewsLast Modified:
I am having issues automating a batch file using the windows task scheduler.   The worst part is this process was working for years, and now it does not.  


I am transferring files to a 3rd party vendor via SSH2 using psftp.exe.  I have a batch file that performs the following process:

1.  runs ftp command to get the data from my Unix server.
2. copies the files to a location on the windows server and renames them.
3. launches psftp.exe from the directory where these files are stored.
4. put commands to place them on the 3rd party server.
5. deletes the files from the window directory.

If I run this batch file manually, the process works flaulessly.  When I try and schedule this through Windows task scheduler, it is failing at between step 3 and 4.  

The issue started last week when the 3rd party vendor changed SSH servers.  I updated the batch file with the new information, but then started to experience the issue above.  

Any help will be greatly appreciated.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros