|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|