🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8323

Re: script for ftp get

#8323
From: Alexis Roda
Date: Thu, 06 Jun 1996 00:00
39 lines
1580 bytes
Christophe Zwecker wrote:
> 
> Hi, I want to get a file from my isp by ftp everyday and delete it after. I
> tried autoexpect, but it hanggs after a download.
> 
> Anyone here that is doing this, please tell me how. With this I can get my
> news package nicely in the night with crond.
> 
> thx alot in advance
> 

Currently I'm doing this with a shell script. You can try something like
this:

# my_ftp_script
#!/bin/sh
ftp -i -n <<HELLOWORLD
open the.ftp.server.you.want
user your_login_or_anonymous your_password_or_email_addres
cd where_you_want_on_your_remote_system
lcd where_you_want_on_your_local_system
binary
get one_file
get another_file
...
get the_last_file
bye
HELLOWORLD

it works fine for me with cron.


Saludos, Alex (:
e-mail: arv@fcee.urv.es
Universitat Rovira i Virgili
Tarragona (Spain)

Technical Details
Message-ID: <31B72710.53A4FBEB@fcee.urv.es>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <31B6B932.3E3A2AF1@public.uni-hamburg.de>

Show Full Headers
Complete Article Headers
Message-ID: <31B72710.53A4FBEB@fcee.urv.es>
Subject: Re: script for ftp get
Date: Thu, 06 Jun 1996 00:00:00 +0000
From: Alexis Roda <arv@fcee.urv.es>
References: <31B6B932.3E3A2AF1@public.uni-hamburg.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 158807219
Distribution: world
Content-type: text/plain; charset=us-ascii
Organization: Universitat Rovira i Virgili
Mime-version: 1.0
Newsgroups: comp.os.linux.networking,news.software.nntp
X-mailer: Mozilla 3.0b4 (X11; I; Linux 1.2.13 i486)