fetch problem

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Jun 8 02:38:51 PDT 2004


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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040608/280bdb00/attachment.bin


More information about the freebsd-questions mailing list