Date: Tue, 8 Jun 2004 10:38:43 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Viliam Kyjac <kyjac@smu.gov.sk> Cc: questions@freebsd.org Subject: Re: fetch problem Message-ID: <20040608093843.GA12433@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <000501c44d2f$36111f70$4d2f10ac@kyjac> References: <000501c44d2f$36111f70$4d2f10ac@kyjac>
next in thread | previous in thread | raw e-mail | index | archive | help
--/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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040608093843.GA12433>