From owner-freebsd-questions Mon Apr 29 06:48:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA16433 for questions-outgoing; Mon, 29 Apr 1996 06:48:02 -0700 (PDT) Received: from emma.sea.uct.ac.za (emma.sea.uct.ac.za [137.158.131.151]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA16367 for ; Mon, 29 Apr 1996 06:46:20 -0700 (PDT) Received: (from shaun@localhost) by emma.sea.uct.ac.za (8.6.12/8.6.9) id PAA00276 for freebsd-questions@freebsd.org; Mon, 29 Apr 1996 15:43:43 +0200 From: Shaun Courtney Message-Id: <199604291343.PAA00276@emma.sea.uct.ac.za> Subject: Cron job and at jobs To: freebsd-questions@freebsd.org Date: Mon, 29 Apr 1996 15:43:42 +0200 (SAT) X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi I wonder if someone can give me a pointer to fixing this problem. I'm running 2.1.0: I have a cron job that runs nightly to mirror a satellite image (if it exists). Once it has be w3mir (Web mirror perl script) some processing in done to the image to rename it to the image date etc... A perl script then moves the image and writes a "at job file which is the set to run 8 days latter. Here is the problem, the script exits with the error: Apr 28 04:35:00 emma atrun[29155]: Userid 107 mismatch name root - abortin g job c00d33f57.00 I've tried to make the cron script setuid but this doesn't work! HELP! Thanks Shaun Courtney P.S. Here is the cron script: #!/bin/sh DATE=`date '+%d%m%y'` echo "Started script at $DATE" cd /usr/home/vanballe/bin/w3mir echo "Grabbing lastest image..." ./w3mir http://www.rsmas.miami.edu/avhrr-images/agulhasgac/latest-1.gif echo "Grabbing text page..." lynx -dump http://www.rsmas.miami.edu/htbin/imagery/m:agulhasgac-0 > $DATE .html ./noaa.pl < $DATE.html rm $DATE.html at -f atjob now + 8 days #rm atjob echo "Removed temporary files and set at job." echo "Fin." --------------------------snip snip----------------------- Here is the atjob file: rm -rf /home/vanballe/webdocs/25April1996.gif -- Oceanography Department, University of Cape Town, South Africa Finger for PGP key Powered by FreeBSD "Whatever the missing mass of the universe is, I hope it's not cockroaches!" -- Mom