Forum Moderators: phranque

Message Too Old, No Replies

FTP upload pls help me out

         

rammarella

7:54 am on Jan 29, 2007 (gmt 0)

10+ Year Member



Hi all,
I am novice to the FTP scripts.What i need to do is:
I wants to upaload a file from the machine to server using FTP simple batch file this needs to upload a file eachand evry minute totheserver
How canacheve this?
Tanks
Ram

coopster

8:45 pm on Jan 29, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, rammarella.

You could specify a text file containing your FTP commands. Something along these lines:

ftpinput.txt

userid 
password
lcd /path/to/local/directory
cd /path/to/remote/directory
put localfilename remotefilename
quit

Then just add the command to your system's job scheduler.
ftp -s:ftpinput.txt <host>