Advertisement

05.22.2008 at 08:28AM PDT, ID: 23424784
[x]
Attachment Details

Issues automating a psftp batch file

Asked by sportzzphann in FTP Servers

Tags: batch files, psftp.exe

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.  

Background.

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.

Thanks,

Start Free Trial
 
Loading Advertisement...
 
[+][-]05.22.2008 at 08:57AM PDT, ID: 21625008

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 09:49AM PDT, ID: 21625525

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 12:51PM PDT, ID: 21626994

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.22.2008 at 01:47PM PDT, ID: 21627449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 01:57PM PDT, ID: 21627571

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: FTP Servers
Tags: batch files, psftp.exe
Sign Up Now!
Solution Provided By: sportzzphann
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628