LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-20-2005, 04:36 AM   #1
Prasun1
Member
 
Registered: Jun 2005
Posts: 41

Rep: Reputation: 15
ftp program


Hi all,

I often have to ftp files from a particular directory in a remote server. This directory contains 500+ files and all of them have the same extension say .xyz. Now when I do mget *.xyz it asks me individually for each of the files to be copied or not .As for eg I get the following every time I try to ftp from this directory.

Copy file_name1.xyz?

This continues for all the 500+ files...means I get the message 500+ times and I do a yes ('y') everytime I want to ftp the files. Now I want to have all the files ftped to the desired location.Is there any option with mget that will not throw this message (Copy file_name1.xyz?) for each file copied but will simply ftp all the files silently to the desired location.Because it is simply a waste of time to sit back and type 'y' for each of the files to be ftped.

On the other hand if it is not possible thru command , is it possible to write a shell script for the same that will automatically answer yes ('y') for each file ftped and will ftp all the files to the desired location once it is executed.
The program takes into account that all the files are to be ftped from the directory and that there are no exceptions to it.

Please help me with the concepts reqd to perform the above job. It will be really helpful.

Thanks and Regards
Prasun
 
Old 09-20-2005, 05:59 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,606

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
Just give "prompt off" before the mget *.xyz
 
Old 09-20-2005, 08:40 AM   #3
Prasun1
Member
 
Registered: Jun 2005
Posts: 41

Original Poster
Rep: Reputation: 15
thanks a lot , it worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need a ftp program Oh Cisco Debian 8 01-20-2005 02:46 PM
Linux FTP program? nyk Linux - Software 7 10-08-2004 03:07 PM
FTP Program? jabird Linux - Software 5 09-20-2004 02:55 AM
which ftp program? kpachopoulos Linux - Newbie 3 09-15-2004 08:06 AM
FTP program in C shibdas Programming 9 02-10-2004 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration