public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* ftp question
@  Gregory Nowak
   ` Hart Larry
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

Say I want to get 2 files via ftp, but I want to do it in a specific
order, and I don't want file2 to start downloading until file1 is
finished downloading. For example, if I were to execute get file1.tar,
and get file2.tar, I want get file2.tar to be executed only after get
file1.tar is done.

I see that lftp has a queue command. Does anyone know if this would
work the way I expect? What I mean is if I execute:

queue get file1.tar
queue get file2.tar

in lftp, would that in fact wait to download file2.tar until the
download of file1.tar was complete?

If the queue command in lftp doesn't work this way, then is there
another command that would do what I want? If lftp can't do what I
want, then can ncftp do that? If so, then how? I have looked through
the ncftp man page as well, and this doesn't seem to be doable in
ncftp. If neither lftp or ncftp can do what I want, then is there
another ftp client for gnu/linux that can?

Just to clarify, I don't want to time-schedule the downloads, I simply
want them to happen sequentially one after another, in a specific
order, (I.E. file2.tar can download right after file1.tar, but it
can't start downloading while file1.tar is still being downloaded).

On another note, does anyone know for sure if put in lftp or ncftp
will retry an upload until it successfully completes, if the upload
keeps being interrupted, say due to network issues? I'm fairly sure the
answer here for both programs is yes, but I wanted to make
certain. Thanks in advance.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGf2AO7s9z/XlyUyARAgA1AKDdu8Li7khgpV4H0rRh424xjude3ACdFnRw
Tg/Zd+5f0BiU2MmlslaaXWk=
=QDyq
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 8+ messages in thread

* ftp question
   ftp question Gregory Nowak
@  ` Hart Larry
   ` Georgina Joyce
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Hart Larry @  UTC (permalink / raw)
  To: speakup

Hi Greg:  I run ncftp quite often--and it only seems to work on a single item 
at a time, but I usually run an
mget -DD star dot star
in directories here in shellworld.  The capitol DD will delete when successful
Hart



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: ftp question
   ftp question Gregory Nowak
   ` Hart Larry
@  ` Georgina Joyce
   ` Ralph W. Reid
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Georgina Joyce @  UTC (permalink / raw)
  To: 'Speakup is a screen review system for Linux.'

Hi

Don't know about the lftp commands but couldn't you put them in a bash script listing the sequence you want?  Would wget do the job?

HTH
Gena

Amateur Call: M 0 E B P

VOIP / IM: gena1959uk



-----Original Message-----
From: speakup-bounces@braille.uwo.ca [mailto:speakup-bounces@braille.uwo.ca] On Behalf Of Gregory Nowak
Sent: Monday, June 25, 2007 7:26 AM
To: speakup@braille.uwo.ca
Subject: ftp question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

Say I want to get 2 files via ftp, but I want to do it in a specific
order, and I don't want file2 to start downloading until file1 is
finished downloading. For example, if I were to execute get file1.tar,
and get file2.tar, I want get file2.tar to be executed only after get
file1.tar is done.

I see that lftp has a queue command. Does anyone know if this would
work the way I expect? What I mean is if I execute:

queue get file1.tar
queue get file2.tar

in lftp, would that in fact wait to download file2.tar until the
download of file1.tar was complete?

If the queue command in lftp doesn't work this way, then is there
another command that would do what I want? If lftp can't do what I
want, then can ncftp do that? If so, then how? I have looked through
the ncftp man page as well, and this doesn't seem to be doable in
ncftp. If neither lftp or ncftp can do what I want, then is there
another ftp client for gnu/linux that can?

Just to clarify, I don't want to time-schedule the downloads, I simply
want them to happen sequentially one after another, in a specific
order, (I.E. file2.tar can download right after file1.tar, but it
can't start downloading while file1.tar is still being downloaded).

On another note, does anyone know for sure if put in lftp or ncftp
will retry an upload until it successfully completes, if the upload
keeps being interrupted, say due to network issues? I'm fairly sure the
answer here for both programs is yes, but I wanted to make
certain. Thanks in advance.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGf2AO7s9z/XlyUyARAgA1AKDdu8Li7khgpV4H0rRh424xjude3ACdFnRw
Tg/Zd+5f0BiU2MmlslaaXWk=
=QDyq
-----END PGP SIGNATURE-----

_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup

__________ NOD32 2351 (20070625) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ftp question
   ftp question Gregory Nowak
   ` Hart Larry
   ` Georgina Joyce
@  ` Ralph W. Reid
   ` Travis Siegel
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Ralph W. Reid @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

How about using `wget' in a script:

#!/bin/bash
wget --quiet "ftp://file-archive.wherever/pub/file1.tar"
wget --quiet "ftp://file-archive.wherever/pub/file2.tar"
echo Done.

HTH, and have a great day.

On Sun, Jun 24, 2007 at 11:26:22PM -0700, Gregory Nowak wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all.
> 
> Say I want to get 2 files via ftp, but I want to do it in a specific
> order, and I don't want file2 to start downloading until file1 is
> finished downloading. For example, if I were to execute get file1.tar,
> and get file2.tar, I want get file2.tar to be executed only after get
> file1.tar is done.
> 
> I see that lftp has a queue command. Does anyone know if this would
> work the way I expect? What I mean is if I execute:
> 
> queue get file1.tar
> queue get file2.tar
> 
> in lftp, would that in fact wait to download file2.tar until the
> download of file1.tar was complete?
> 
> If the queue command in lftp doesn't work this way, then is there
> another command that would do what I want? If lftp can't do what I
> want, then can ncftp do that? If so, then how? I have looked through
> the ncftp man page as well, and this doesn't seem to be doable in
> ncftp. If neither lftp or ncftp can do what I want, then is there
> another ftp client for gnu/linux that can?
> 
> Just to clarify, I don't want to time-schedule the downloads, I simply
> want them to happen sequentially one after another, in a specific
> order, (I.E. file2.tar can download right after file1.tar, but it
> can't start downloading while file1.tar is still being downloaded).
> 
> On another note, does anyone know for sure if put in lftp or ncftp
> will retry an upload until it successfully completes, if the upload
> keeps being interrupted, say due to network issues? I'm fairly sure the
> answer here for both programs is yes, but I wanted to make
> certain. Thanks in advance.
> 
> Greg
> 
> 
> - -- 
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
> 
> - --
> Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFGf2AO7s9z/XlyUyARAgA1AKDdu8Li7khgpV4H0rRh424xjude3ACdFnRw
> Tg/Zd+5f0BiU2MmlslaaXWk=
> =QDyq
> -----END PGP SIGNATURE-----

-- 
Ralph.  N6BNO.  Wisdom comes from central processing, not from I/O.
rreid@sunset.net  http://personalweb.sunset.net/~rreid
...passing through The City of Internet at the speed of light...
CIRCLE AREA = _pi * r ^ 2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ftp question
   ftp question Gregory Nowak
                   ` (2 preceding siblings ...)
   ` Ralph W. Reid
@  ` Travis Siegel
     ` Steve Dawes
   ` Gaijin
   ` Igor Gueths
  5 siblings, 1 reply; 8+ messages in thread
From: Travis Siegel @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

I've never had a problem with any ftp client (including ncftp) from  
just typing get file1
then without waiting for it to finish processing that command, or even  
while it's downloading, simply type get file2, and it queues them  
automatically.  So, when file1 is finished, it automatically starts  
getting file2.
I'm sure there's a setting somewhere in the config files that will  
tell it to get them in sequence or simultaneously, but I've never  
fiddled with that, and my files always come down one after the other.

I.E. you don't have to wait for file1 to be finished before asking for  
file2, but it will wait until file1 is finished before getting file2  
anyway.
This works for standard ftp as well.
(never used lftp, so can't comment)

The reason this works is because when you type a new command, it  
simply goes into the buffer, and the ftp program processes the input  
buffer *after* it's finished what it's doing at the moment.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: ftp question
   ` Travis Siegel
@    ` Steve Dawes
  0 siblings, 0 replies; 8+ messages in thread
From: Steve Dawes @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

If the files are all in the same directory on the ftp server, simply do a
mget and use wild cards to get a number of files.
For example:
If you have 5 files that all start with the letter G, you can simply use the
command
mget G*


Steve



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ftp question
   ftp question Gregory Nowak
                   ` (3 preceding siblings ...)
   ` Travis Siegel
@  ` Gaijin
   ` Igor Gueths
  5 siblings, 0 replies; 8+ messages in thread
From: Gaijin @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Gregory Nowak wrote:
> Say I want to get 2 files via ftp, but I want to do it in a specific
> order, and I don't want file2 to start downloading until file1 is
> finished downloading.

     This may need a little editing:

#!/bin/bash
for ( file in filelist.txt ) do {
     lynx -d ftp.wherever.com/directory/%file >  ~/savedir/%file
     grep -i "%file" filelist.txt > filelist.tmp
     mv -f filelist.tmp filelist.txt
} done

     Crap it's been a long time.  Anyway, if you have a list of files
you'd like to download saved to filelist.txt, you can run it in a for
loop.  Use the lynx dump feature to dump  what you want to a file.  Just
point lynx at it and redirect the output to %file, which will be the
file listed in filelist.txt.  Then do an inverse grep on filelist.txt to
remove the filename and redirect grep's output to a temp file.  Then
move the temp file back to filelist.txt, overwriting it, and you should
be done.  [Ctrl+C] will interrupt this script at any time, and resume
where you left off .  I'm *pretty* sure it will work.  I'm just not sure
I got the for command written properly.  Yeah, it could really be 
prettied up using %1 from the command line to name filelist.txt instead. 
  Also pointing lynx's output to a download dir would help too, but the 
principal idea is there.  Have you considered the 'wget' command?  I 
don't know why you're downloading files that way.  Are you on a dialup 
connection?  The only thing about the script above is it expects a 
specific site and directory.  Considerably more work would be needed to 
make it a more generic script that could be used for any site, dir, and 
file list.  Anyway, I HTH,

         Michael



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ftp question
   ftp question Gregory Nowak
                   ` (4 preceding siblings ...)
   ` Gaijin
@  ` Igor Gueths
  5 siblings, 0 replies; 8+ messages in thread
From: Igor Gueths @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Greg. Have you perhaps tried get file1.tar file2.tar? I have not tried this myself; however, I think it may be workable. As for how often Ncftp/Lftp will try putting before giving up, I 
think Lftp is more agressive than Ncftp. In fact, I have never actually seen Lftp time out a transfer because of a drop in net connection/etc, whereas Ncftp times out after a while. There may 
be a way to get Ncftp to wait forever; perhaps there is a setting somewhere to control the timeout value(s).
On Sun, Jun 24, 2007 at 11:26:22PM -0700, Gregory Nowak wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all.
> 
> Say I want to get 2 files via ftp, but I want to do it in a specific
> order, and I don't want file2 to start downloading until file1 is
> finished downloading. For example, if I were to execute get file1.tar,
> and get file2.tar, I want get file2.tar to be executed only after get
> file1.tar is done.
> 
> I see that lftp has a queue command. Does anyone know if this would
> work the way I expect? What I mean is if I execute:
> 
> queue get file1.tar
> queue get file2.tar
> 
> in lftp, would that in fact wait to download file2.tar until the
> download of file1.tar was complete?
> 
> If the queue command in lftp doesn't work this way, then is there
> another command that would do what I want? If lftp can't do what I
> want, then can ncftp do that? If so, then how? I have looked through
> the ncftp man page as well, and this doesn't seem to be doable in
> ncftp. If neither lftp or ncftp can do what I want, then is there
> another ftp client for gnu/linux that can?
> 
> Just to clarify, I don't want to time-schedule the downloads, I simply
> want them to happen sequentially one after another, in a specific
> order, (I.E. file2.tar can download right after file1.tar, but it
> can't start downloading while file1.tar is still being downloaded).
> 
> On another note, does anyone know for sure if put in lftp or ncftp
> will retry an upload until it successfully completes, if the upload
> keeps being interrupted, say due to network issues? I'm fairly sure the
> answer here for both programs is yes, but I wanted to make
> certain. Thanks in advance.
> 
> Greg
> 
> 
> - -- 
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
> 
> - --
> Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFGf2AO7s9z/XlyUyARAgA1AKDdu8Li7khgpV4H0rRh424xjude3ACdFnRw
> Tg/Zd+5f0BiU2MmlslaaXWk=
> =QDyq
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

- -- 
Igor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iQIVAwUBRoNGa6e2pgKIdGq4AQqhXQ//ea4ftY9nluha0nbNS07HZjNTAv3s1lSv
XGWC98TIKKpehtHhoBKfVWBb9AYxxFwU7L8bl2q3bTH4iSitFWx2ZSwE7A4oTHih
1irk69MSA0qmnAMh930GC9JHxtXeGVewFyaN53lXltGWjM6rjYbFmh1vuNtgFsGS
qfSb1DWG30c+kOlGTlAbD0h5pvCZ+NL49EcVdcn0OntuI0jtEzng+mgI6U1lxtgl
Q7MbbZG+pcXUV42SEvB2OYyBnFWTeQGi+3/U5S52/NH+nQmse/LNbvYO651ODHxX
j3Hzl+GwiXkwFxFBDEWHxf18W4fPoyzKxAGxd1CTXbu0mT5w+uIcG71Z0nrWqW+Y
84/V/Dlmqq4SImQ+HwkeCGH7W89Sp5w5dJgSbtJcA1mblu2EA9TAv4BNNMzXXQev
2Opd8jy5qJOVVi1XGV393W5VNMw3XFcVvZO1WAepFxTPfZoyyqaz9ykiGF7in32I
n8vXH2+vBFoZqCG3xZjMqMsMSDlDiTx8Wr2tJjOsDRnhATuocBBZFhhSCzN3+ET4
sQ3fYd2Sda/uPv0+pwrXtHL821rnbY0TnNEyAAOMaeRzS31sAR+MtkZsk+D08sEe
ELRJwIqpteTPNmvlePn9MEOgkylOb1EMfupottCdoVO3v3s0wYz2yHOKo+eWKUc6
sQzn1dsFa2Y=
=T4xf
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 ftp question Gregory Nowak
 ` Hart Larry
 ` Georgina Joyce
 ` Ralph W. Reid
 ` Travis Siegel
   ` Steve Dawes
 ` Gaijin
 ` Igor Gueths

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).