From owner-freebsd-questions Mon Jun 15 09:14:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA07113 for freebsd-questions-outgoing; Mon, 15 Jun 1998 09:14:09 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iglou.com (sendmail@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA06918 for ; Mon, 15 Jun 1998 09:13:30 -0700 (PDT) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.105] by iglou.com with esmtp (8.7.3/8.6.12) id 0ylbsr-0002Gy-00; Mon, 15 Jun 1998 12:13:25 -0400 Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 15 Jun 1998 12:10:12 -0400 (EDT) Organization: The Creative Group From: Patrick Gardella To: Patrick Gardella Subject: RE: Crontab Loop Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oh never mind. A co-worker just pointed out the problem. I put a * instead of 0 for the minute field. So it did what it was supposed to do. Run every minute of the specified hour. Patrick On 15-Jun-98 Patrick Gardella wrote: > I've got a strange problem with a user's crontab (mine). I wrote a > perl script to go to a web site and copy the page to an email to be > sent to me (so I would have a daily status message while I was on > vacation). The script worked well when tested from the command line. > > When I inserted it into my crontab using tkcron (as well as crontab > -e), and ran it with a 2 digit hour field (say 10 AM daily), it ran > once, like it was supposed to. > > But then I changed it to 6 AM, (single digit) and it hiccuped. It > ran > every minute starting at 6 AM for 60 minutes. So when I came back > from > my vacation, I had like 900 messages when I should have only had 15. > > Does anyone know why this kept running like this? I have since tried > it from here on two machines, with the same results. I have also > tried > /etc/crontab, with the same results. > > It's strange. I'm back, so this isn't a problem anymore, but I'd > like > to know what I am doing wrong. My other cron scripts work like they > are supposed to. > > Thanks, > > Patrick Gardella To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message