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 > comp.unix.shell > : Auto Upgrade Data from FTP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

: Auto Upgrade Data from FTP

Réponse
 
LinkBack Outils de la discussion
Vieux 20/07/2007, 12h43   #1
Amy Lee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut : Auto Upgrade Data from FTP

Hello,

I'm a system administrator based on Linux system. And I have to download
some data from a FTP site. The problem is I wanna make a shell script can
accomplish this function that can download data "autoly" without people.

For example, the ftp is ftp://192.168.0.1/, and every night it will add
many files with date-signs.
2007-5-6.log
2007-5-6-1.log
2007-5-9.log
..
..
..
2007-7-20.log
Just like this.

If today was 2007-7-21, and I had got these logs before 2007-7-19, it
would download the logs between 2007-7-20 to 2007-7-21.

Thank you very much~

Regards,

Amy Lee
  Réponse avec citation
Vieux 20/07/2007, 15h53   #2
Harry331
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: : Auto Upgrade Data from FTP

Amy Lee wrote...
>
>Hello,
>
>I'm a system administrator based on Linux system. And I have to download
>some data from a FTP site. The problem is I wanna make a shell script can
>accomplish this function that can download data "autoly" without people.
>
>For example, the ftp is ftp://192.168.0.1/, and every night it will add
>many files with date-signs.
>2007-5-6.log
>2007-5-6-1.log
>2007-5-9.log
>.
>.
>.
>2007-7-20.log
>Just like this.
>
>If today was 2007-7-21, and I had got these logs before 2007-7-19, it
>would download the logs between 2007-7-20 to 2007-7-21.


try rsync instead of ftp

you don't need to care on selecting today's date

eveything from yesterday & before should be already fetched


  Réponse avec citation
Vieux 21/07/2007, 00h21   #3
johngnub
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: : Auto Upgrade Data from FTP

On Jul 20, 4:43 am, "Amy Lee" <openlinuxsou...@gmail.com> wrote:
> Hello,
>
> I'm a system administrator based on Linux system. And I have to download
> some data from a FTP site. The problem is I wanna make a shell script can
> accomplish this function that can download data "autoly" without people.
>
> For example, the ftp isftp://192.168.0.1/, and every night it will add
> many files with date-signs.
> 2007-5-6.log
> 2007-5-6-1.log
> 2007-5-9.log
> .
> .
> .
> 2007-7-20.log
> Just like this.
>
> If today was 2007-7-21, and I had got these logs before 2007-7-19, it
> would download the logs between 2007-7-20 to 2007-7-21.
>
> Thank you very much~
>
> Regards,
>
> Amy Lee


EXPECT !!
See the tcl group, expect can read the info during the session, Just a
thought.

JB

  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 05h39.


É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,09525 seconds with 11 queries