PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > curses-interface ftp client with resume?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

curses-interface ftp client with resume?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/07/2007, 02h50   #1
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut curses-interface ftp client with resume?

I'm on dialup and often access the internet via a slow computer by
sshing into my fast computer (which has the modem).

Right now, if I want to download something like an iso file via ftp
(there being no rsync mirror available), I put the url in a file, e.g.
wget.lst and from a shell run $wget -c -i wget.lst.

I let it run untill we need the phone line or its time to turn off the
computer for the night (don't ask), interrupt it, and then start again
later.

It works reasonably well, but there are some issues:

1. After so many interruptions, often there has been an error creep
in and the md5sum doesn't match. Without rsync, I don't know how to fix
a file that is the correct lenght but doesn't match.

2. It would be nice to have a queue that is persistant over
reboots.

3. It would be nice to have a curses interface like mc that lets me
browse to the correct file, then tag the file for downloading which puts
it into the above queue.

4. Have something that runs from /etc/ppp/ip-up.d to start the
download but only use spare bandwidth, and something in ip-down.d to
stop the download.

Issues 2, 3, and 4 are only simple programming and I wonder if such an
app exists (I couldn't find anything in aptitude, most are for X).

Issue 1 is tricky. I haven't come across any ftp client that claims to
do it so it may not be possible given the nature of ftp itself.

Issue 3 is important. A straight CLI doesn't if I have to write
down what command I issued to get a file and then retype it every time I
start the computer again; may as well stick with wget.

Any ideas? How do others handle ftp downloads that may take a week of
phone time?

Thanks,

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 03h40   #2
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: curses-interface ftp client with resume?

On Sat, 28 Jul 2007, Douglas Allan Tutty wrote:

> I'm on dialup and often access the internet via a slow computer by
> sshing into my fast computer (which has the modem).
>
> Right now, if I want to download something like an iso file via ftp
> (there being no rsync mirror available), I put the url in a file, e.g.
> wget.lst and from a shell run $wget -c -i wget.lst.
>
> I let it run untill we need the phone line or its time to turn off the
> computer for the night (don't ask), interrupt it, and then start again
> later.
>
> It works reasonably well, but there are some issues:
>
> 1. After so many interruptions, often there has been an error creep
> in and the md5sum doesn't match. Without rsync, I don't know how to fix
> a file that is the correct lenght but doesn't match.
>
> 2. It would be nice to have a queue that is persistant over
> reboots.
>
> 3. It would be nice to have a curses interface like mc that lets me
> browse to the correct file, then tag the file for downloading which puts
> it into the above queue.
>
> 4. Have something that runs from /etc/ppp/ip-up.d to start the
> download but only use spare bandwidth, and something in ip-down.d to
> stop the download.
>
> Issues 2, 3, and 4 are only simple programming and I wonder if such an
> app exists (I couldn't find anything in aptitude, most are for X).
>
> Issue 1 is tricky. I haven't come across any ftp client that claims to
> do it so it may not be possible given the nature of ftp itself.
>
> Issue 3 is important. A straight CLI doesn't if I have to write
> down what command I issued to get a file and then retype it every time I
> start the computer again; may as well stick with wget.
>
> Any ideas? How do others handle ftp downloads that may take a week of
> phone time?
>
> Thanks,
>
> Doug.
>


Hm, well with a little bit of scripting there's ncftpget and ncftpbatch.
ncftp covers point 1 pretty well from my testing. for 2, ncftpbatch does
this almost, you create your que and it processes it, just in the order
you submit them though. If/when the process gets terminated, a simple
ncftpbatch -d starts the processing back up. you might be able to write
up some scripts to manage the spool directory though.

Jeff

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 03h50   #3
Jude DaShiell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: curses-interface ftp client with resume?

Issue 3 can be handled if you remember to run script and then do your
complex ftp command and exit out of both at the end. All you need do then
is to edit the file script makes for you and turn it into a short shell
script and make it useable. I use the name surf for my scripts when I
need to do this so a command line interface can work easily enough with a
little forethought and planning.. You can also run wget with the -b
switch and have it download in the background and tail the .wget-log file
every so often to check on progress.



On Sat, 28 Jul 2007, Jeff D wrote:

> On Sat, 28 Jul 2007, Douglas Allan Tutty wrote:
>
>> I'm on dialup and often access the internet via a slow computer by
>> sshing into my fast computer (which has the modem).
>>
>> Right now, if I want to download something like an iso file via ftp
>> (there being no rsync mirror available), I put the url in a file, e.g.
>> wget.lst and from a shell run $wget -c -i wget.lst.
>>
>> I let it run untill we need the phone line or its time to turn off the
>> computer for the night (don't ask), interrupt it, and then start again
>> later.
>>
>> It works reasonably well, but there are some issues:
>>
>> 1. After so many interruptions, often there has been an error creep
>> in and the md5sum doesn't match. Without rsync, I don't know how to fix
>> a file that is the correct lenght but doesn't match.
>>
>> 2. It would be nice to have a queue that is persistant over
>> reboots.
>>
>> 3. It would be nice to have a curses interface like mc that lets me
>> browse to the correct file, then tag the file for downloading which puts
>> it into the above queue.
>>
>> 4. Have something that runs from /etc/ppp/ip-up.d to start the
>> download but only use spare bandwidth, and something in ip-down.d to
>> stop the download.
>>
>> Issues 2, 3, and 4 are only simple programming and I wonder if such an
>> app exists (I couldn't find anything in aptitude, most are for X).
>>
>> Issue 1 is tricky. I haven't come across any ftp client that claims to
>> do it so it may not be possible given the nature of ftp itself.
>>
>> Issue 3 is important. A straight CLI doesn't if I have to write
>> down what command I issued to get a file and then retype it every time I
>> start the computer again; may as well stick with wget.
>>
>> Any ideas? How do others handle ftp downloads that may take a week of
>> phone time?
>>
>> Thanks,
>>
>> Doug.
>>

>
> Hm, well with a little bit of scripting there's ncftpget and ncftpbatch.
> ncftp covers point 1 pretty well from my testing. for 2, ncftpbatch does
> this almost, you create your que and it processes it, just in the order you
> submit them though. If/when the process gets terminated, a simple ncftpbatch
> -d starts the processing back up. you might be able to write up some scripts
> to manage the spool directory though.
>
> Jeff
>
> -+-
> 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred
> Techno.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 21h00   #4
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: curses-interface ftp client with resume?

On Sat, Jul 28, 2007 at 09:44:28PM -0400, Douglas Allan Tutty wrote:
> I'm on dialup and often access the internet via a slow computer by
> sshing into my fast computer (which has the modem).
>
> Right now, if I want to download something like an iso file via ftp
> (there being no rsync mirror available), I put the url in a file, e.g.


No torrents either?

> 1. After so many interruptions, often there has been an error creep
> in and the md5sum doesn't match. Without rsync, I don't know how to fix
> a file that is the correct lenght but doesn't match.


torrent solves this ...

> 3. It would be nice to have a curses interface like mc that lets me
> browse to the correct file, then tag the file for downloading which puts
> it into the above queue.


AFAIK mc can do ftp. I didn't use it much, but it might do most of what
you need.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

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

iD8DBQFGrO+yqJyztHCFm9kRAjtXAKC4uUXPhMtUhlMgbNVyZi 2T/SkLBACgj2ji
dX7oibnkb+614d0FWIxV4+o=
=XWPr
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 29/07/2007, 21h30   #5
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: curses-interface ftp client with resume?

On Sun, Jul 29, 2007 at 10:51:14PM +0300, Andrei Popescu wrote:
> On Sat, Jul 28, 2007 at 09:44:28PM -0400, Douglas Allan Tutty wrote:
> > I'm on dialup and often access the internet via a slow computer by
> > sshing into my fast computer (which has the modem).
> >
> > Right now, if I want to download something like an iso file via ftp
> > (there being no rsync mirror available), I put the url in a file, e.g.

>
> No torrents either?


No. For my current download, I found a mirror that also offers rsync
(although it doesn't advertise it). However, lots of things are
available via FTP that aren't available any other way.

> > 3. It would be nice to have a curses interface like mc that lets me
> > browse to the correct file, then tag the file for downloading which puts
> > it into the above queue.

>
> AFAIK mc can do ftp. I didn't use it much, but it might do most of what
> you need.


mc can't resume; it only wants to overwrite, append, or cancel.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 20h30   #6
Bob McGowan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: curses-interface ftp client with resume?

Douglas Allan Tutty wrote:
> On Sun, Jul 29, 2007 at 10:51:14PM +0300, Andrei Popescu wrote:
>> On Sat, Jul 28, 2007 at 09:44:28PM -0400, Douglas Allan Tutty wrote:
>>> I'm on dialup and often access the internet via a slow computer by
>>> sshing into my fast computer (which has the modem).
>>>
>>> Right now, if I want to download something like an iso file via ftp
>>> (there being no rsync mirror available), I put the url in a file, e.g.

>> No torrents either?

>
> No. For my current download, I found a mirror that also offers rsync
> (although it doesn't advertise it). However, lots of things are
> available via FTP that aren't available any other way.
>
>>> 3. It would be nice to have a curses interface like mc that lets me
>>> browse to the correct file, then tag the file for downloading which puts
>>> it into the above queue.

>> AFAIK mc can do ftp. I didn't use it much, but it might do most of what
>> you need.

>
> mc can't resume; it only wants to overwrite, append, or cancel.
>
> Doug.
>
>

There is, in addition to the 'ncftp' package, an 'ncftp2', described as
an older version, but with an ncurses interface. If it supports the
same r similar feature set as ncftp, then it should be able to resume, etc.

I use ncftp, so am not familiar with ncftp2, I just know it exists.

--
Bob McGowan

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20497 seconds with 14 queries