I have mainly used a GUI based FTP program (gftp), but while debugging my website I find it more effective to use FTP in a shell script.
The script I use takes one argument: the file to be transferred.
#! /bin/sh
echo -use a "here" document to embed ftp commands in the script
# Begin of "here" document
ftp <<**
open ftp_site
cd the_target_directory
lcd /.../the_local_source_directory
put $1
bye
# End of "here" document
echo ftp transfer ended
The settings of username, password and destination ftp site must be in the .netrc file in the home directory. The format is as follows:
machine your_ftp_site login your_login password your_passwd
Would you like to benefit from the once in a lifetime investment opportunities in the UK? The lower level of the pound together with depressed property prices has created excellent conditions for medium to long term investment. I have substantial experience in the London market and would be delighted to offer no strings advice. If you'd like to know more, please contact me.
For more details please go to Rhema Housing Ltd. Rhema Housing Ltd is a Franchise Partner of Platinum Property Partners, the UK's fastest growing franchise, and a recognised provider of leading insight and support for UK property investors.
Massage and alternative therapies in London
A very good friend of mine is one of the worlds most amazing Audiologists. You can find out more here.......
click for hear2learn
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer