From owner-freebsd-questions Sun Aug 19 23:31: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ares.blahz.ab.ca (h24-64-70-105.cg.shawcable.net [24.64.70.105]) by hub.freebsd.org (Postfix) with SMTP id 8F05537B403 for ; Sun, 19 Aug 2001 23:30:44 -0700 (PDT) (envelope-from bsd-lists@blahz.ab.ca) Received: (qmail 9044 invoked from network); 20 Aug 2001 06:30:52 -0000 Received: from unknown (HELO zeus) (24.64.68.214) by h24-64-70-105.cg.shawcable.net with SMTP; 20 Aug 2001 06:30:52 -0000 From: "Mike Roest" To: "'kyle pchost.com'" , Subject: RE: ftp from cron Date: Mon, 20 Aug 2001 00:33:31 -0600 Message-ID: <000201c12942$07939f60$d6444018@zeus> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C1290F.BCFC3CA0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal In-Reply-To: <00e801c1293e$75ad7e20$0100007f@localhost> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C1290F.BCFC3CA0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Might want to try using wget or ncftpget as they are non interactive FTP's and will probably work a bit better from a cron. -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of kyle pchost.com Sent: Monday, August 20, 2001 12:08 AM To: freebsd-questions@freebsd.org Subject: ftp from cron Hi I have been trying to cron to perform a ftp retrieve with the following line 30 * * * * /usr/bin/ftp -n -v < /www/ascetgroup/mildura/admin/getweather but I get the following error. -------------> Connected to ftp.theweather.com.au. 220 web-server Microsoft FTP Service (Version 4.0). 331 Password required for mildura. 230-Welcome to The Weather Company FTP Server. 230- 230-Should you need to contact us, please do so 230-on +612 9955 7704 or via support@theweather.com.au 230-Samples of our data products can be downloaded from the samples directory. 230 User mildura logged in. Local directory now /usr/local/share/apache/htdocs/ascetgroup/mildura/admin Hash mark printing on (1024 bytes/hash mark). 200 Type set to I. ftp: connect: Network dropped connection on reset Passive mode on. Interactive mode off. 221 Bye. ------------------------------> yet if I try that same command from the commandline it works just fine any help would be great. thanks kyle ------=_NextPart_000_0003_01C1290F.BCFC3CA0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Might want to try using wget or ncftpget as = they are non interactive FTP’s and will probably = work a bit better from a cron.

 

-----Original = Message-----
From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of kyle pchost.com
Sent: Monday, August 20, = 2001 12:08 AM
To: = freebsd-questions@freebsd.org
Subject: ftp from = cron

 

Hi I have been trying to = cron to perform a ftp retrieve with the following = line

 

30    &n= bsp; *       = *       *       *       /usr/bin/ftp -n -v < /www/ascetgroup/mildura/admin/getweather

 

but I get the following = error.

 

------------->

Connected to ftp.theweather.com.au.
220 web-server Microsoft FTP Service (Version 4.0).
331 Password required for mildura.
230-Welcome to The Weather Company FTP Server.
230-
230-Should you need to contact us, please do so
230-on +612 9955 7704 or via support@theweather.com.au 230-Samples of our data products can be downloaded from the samples = directory.
230 User mildura logged in.
Local directory now = /usr/local/share/apache/htdocs/ascetgroup/mildura/admin
Hash mark printing on (1024 bytes/hash mark).
200 Type set to I.
ftp: connect: Network dropped connection on reset
Passive mode on.
Interactive mode off.
221 Bye.

----------------------------= -->

 

yet if I try that same = command from the commandline it works just fine

 

any help would be = great.

 

thanks

 

kyle

 

------=_NextPart_000_0003_01C1290F.BCFC3CA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message