programming

How do I set up a basic FTP script on my Linux server?

Setting up a ftp script can be very useful, especially if you have a repetitive task that happens on a regular basis.

#!/bin/sh
HOST=’ftp.yourserver.com’
USER=’myusername’
PASSWD=’mypassword’
FILE=’file.txt’

ftp -n $HOST <

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top