From owner-freebsd-questions@FreeBSD.ORG Tue Jun 8 09:38:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BCD916A4CE for ; Tue, 8 Jun 2004 09:38:51 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7650F43D54 for ; Tue, 8 Jun 2004 09:38:49 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i589chci012764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jun 2004 10:38:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i589chfp012763; Tue, 8 Jun 2004 10:38:43 +0100 (BST) (envelope-from matthew) Date: Tue, 8 Jun 2004 10:38:43 +0100 From: Matthew Seaman To: Viliam Kyjac Message-ID: <20040608093843.GA12433@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Viliam Kyjac , questions@freebsd.org References: <000501c44d2f$36111f70$4d2f10ac@kyjac> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <000501c44d2f$36111f70$4d2f10ac@kyjac> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.2.2 (smtp.infracaninophile.co.uk [0.0.0.0]); Tue, 08 Jun 2004 10:38:43 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040604, clamav-milter version 0.71c on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: fetch problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 09:38:51 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 08, 2004 at 10:04:23AM +0200, Viliam Kyjac wrote: > on FreeBSD 4.6 fetch from perl script in /etc/Crontab not working (it is > update.pl for drWeb antivirus), message fetch: operation timeout received, > from console fetch also not operate, but the same perl script running from > console operate OK > please where is problem? Could well be something to do with: a) active vs passive mode FTP -- some firewalls will force you to use passive mode: symptom is that you can connect to the remote FTP server, but as soon as you try and get a directory listing or retreive a file, everything freezes up. Check and see if FTP_PASSIVE_MODE is set in your console environment. It won't be set in the environment the cron(8) generates for the scripts it runs, so if you need it, either set it from within the script, or use the '-p' option on the fetch(1) command line. b) Similarly, you may need to use a proxy server to access remote HTTP or FTP sites. That involves setting 'FTP_PROXY' and/or 'HTTP_PROXY' environment variables in the same way as above. See fetch(3) for details of what environment settings there are to play with. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAxYkjiD657aJF7eIRAjfDAJwPF8rIWuPxf1w2CshpCiXC0DTS6ACdHnka d5NIpSi+2uwNtNkMgP/q2+E= =/+sz -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--