FTP script to FTP file to UNIX - Solaris

Hello,

A couple of times per week, i receive emails notifications when files are available for processing.

Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and trigger other processes to process this file.

Does anyone have an example of a batch FTP script that i can use as an example?

Thanks for any help on this!
BobK

Although this is not the right forum to ask windows question, you can follow the following steps.

1)create a file ftp.txt with the following information

open <host ip address>
<user name>
<password>
<command>
quit

Now make a batch file ftpfile.bat with the following content and scehdule it to run according to your need.

ftp -sftp.txt

Alternatively, you can specify the ftp host ip address in the batch file itself.

ftp -sftp.txt <host ip address>

Hope this helps !!!! It has worked for me :slight_smile:

I use "Putty" on Windows for tasks like this.

  1. Use "pscp.exe" which is an implementation of "scp" to copy files.

  2. Use "plink.exe" which is an implementation of "ssh" to run scripts/programs on other machines.

Thanks alot Kimitsin! & Porter! i'm looking into these recommendations right now!

BobK