Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 22:51:37 +0800
From:      "Paul Hamilton" <paul@computerwest.com.au>
To:        "Freebsd-Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   script runs ok, however cron job stalls with wget
Message-ID:  <AGEHIFHGNEMPFNCPLONMKENEEEAA.paul@compwest.com.au>

next in thread | raw e-mail | index | archive | help
Hi,

I have the following simple test script:-

------------------------------------------------
#! /bin/sh
cd /root/bin/
/usr/local/bin/wget --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/superdat/intel/sdat4???.exe"

------------------------------------------------

This should download the latest McAfee superdat file, ie: sdat4250.exe into
the /root/bin dir.

When I run this script manually, it runs fine.  When I have it run via a
cron job, it stalls.  This is what I see in 'ps -ax'


 7673  ??  I      0:00.00 cron: running job (cron)
 7674  ??  Is     0:00.00 /bin/sh -c /root/bin/test.sh
 7675  ??  I      0:00.00 /bin/sh /root/bin/test.sh
 7676  ??  I      0:00.01 /usr/local/bin/wget --glob=on -N --passive-ftp
ftp://ftp.nai.com/pub/antivirus/sup

Any idea why this might be so?  I have tried using an ftp command, but the
same thing happens.  I have tried exporting a path that includes the
/usr/local/bin and the /root/bin directories, however, that didn't help.

Any ideas?

Cheers,

Paul Hamilton





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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AGEHIFHGNEMPFNCPLONMKENEEEAA.paul>