+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Batch FTP Script in Coding and Web Development; Hey, I was wondering if anyone can create a batch script which would ftp into a linux server and download ...
  1. #1
    My220x's Avatar
    Join Date
    Feb 2008
    Location
    UK
    Posts
    257
    Thank Post
    9
    Thanked 3 Times in 3 Posts
    Blog Entries
    8
    Rep Power
    14

    Batch FTP Script

    Hey,

    I was wondering if anyone can create a batch script which would ftp into a linux server and download a file?

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    Sure, its possible.

    I'd urge against using ftp though in favour of SFTP for both security/ease.

    If this is ok by you, it should be easy enough to make you a small script.

  3. #3
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    469
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    It's quite easy you need to make a file (called commands.txt in this instance) as follows:

    <username>
    <password>
    GET file.extention

    then use ftp -s commands.txt

    http://www.nsftools.com/tips/MSFTP.htm

    But it does store and transmit the password in plain text so SCP might be a better option. There is an SCP client bundled with the putty suite see: http://www.chiark.greenend.org.uk/~s.../download.html

SHARE:
+ Post New Thread

Similar Threads

  1. Batch shut down
    By steve_nfi in forum Wireless Networks
    Replies: 8
    Last Post: 11th March 2008, 09:18 AM
  2. Pass £ in batch file
    By meastaugh1 in forum Windows
    Replies: 2
    Last Post: 17th January 2008, 08:02 PM
  3. Shutdown batch script stalls if 1 PC is shut down
    By PrimaryTech in forum Scripts
    Replies: 8
    Last Post: 7th July 2007, 06:04 PM
  4. Batch image convert...
    By indie in forum Windows
    Replies: 17
    Last Post: 12th December 2006, 12:19 PM
  5. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •