From owner-freebsd-questions Thu Feb 27 6:50:20 2003 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 8CA1C37B405 for ; Thu, 27 Feb 2003 06:50:18 -0800 (PST) Received: from cwe.compwest.com.au (compwest.com.au [202.72.147.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8F2143FBF for ; Thu, 27 Feb 2003 06:50:16 -0800 (PST) (envelope-from paul@compwest.com.au) Received: from wks (ant.parkview.compwest.com.au [202.72.147.43]) by cwe.compwest.com.au (8.11.6/8.11.6) with SMTP id h1REoEE07723 for ; Thu, 27 Feb 2003 22:50:14 +0800 (WST) (envelope-from paul@compwest.com.au) From: "Paul Hamilton" To: "Freebsd-Questions" Subject: script runs ok, however cron job stalls with wget Date: Thu, 27 Feb 2003 22:51:37 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 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