From owner-freebsd-database@FreeBSD.ORG Tue Dec 28 14:08:11 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7597216A4CE for ; Tue, 28 Dec 2004 14:08:11 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E4AE43D1F for ; Tue, 28 Dec 2004 14:08:11 +0000 (GMT) (envelope-from aharrison@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so126406rne for ; Tue, 28 Dec 2004 06:08:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=RnsPUJGARxXL58IkGfUHZ3Qt6YNkOFXkIGb7QECIZGq/MeAe9pZAk8bfWwuuXsFE6STg90bLhvgfpqFVit5miUJmSnVzDOcQF+G+DrEB7bxEIGWn3Ll3ArqmuUhSFbAJq3zKFdTYw1EFIUBv/Hm58e5mResR7UfZxOr5XwZB5sA= Received: by 10.38.65.15 with SMTP id n15mr140112rna; Tue, 28 Dec 2004 06:08:10 -0800 (PST) Received: by 10.38.101.36 with HTTP; Tue, 28 Dec 2004 06:08:10 -0800 (PST) Message-ID: Date: Tue, 28 Dec 2004 09:08:10 -0500 From: Andy Harrison To: "Joseph E. Maxwell" In-Reply-To: <41CD04B9.404@jaymax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41CD04B9.404@jaymax.com> cc: freebsd-database@freebsd.org Subject: Re: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andy Harrison List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 14:08:11 -0000 On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell wrote: > I am setting up a cron job to run a shell script at 1 hr interval and to > have the output of the script sent to a user. I have this in the cron > file inserted by crontab > > cat /var/cron/tabs/whoser > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > # (cron_reg installed on Fri Dec 24 18:13:01 2004) > # (Cron version -- $FreeBSD: > src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 > 03:18:37 peter Exp $) > 0 1 * * * > /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl > MAILTO=user Reread the crontab manpage. 0 1 * * * doesn't mean once per hour, it means that it will run every day at 1AM. If you want once per hour, I believe you can do */60 * * * * -- Andy Harrison From owner-freebsd-database@FreeBSD.ORG Tue Dec 28 14:13:19 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C668E16A4CE for ; Tue, 28 Dec 2004 14:13:19 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F97D43D1D for ; Tue, 28 Dec 2004 14:13:19 +0000 (GMT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 26EAF3D37; Tue, 28 Dec 2004 09:13:08 -0500 (EST) From: "Dan Langille" To: Andy Harrison , "Joseph E. Maxwell" Date: Tue, 28 Dec 2004 09:11:06 -0500 MIME-Version: 1.0 Message-ID: <41D1232A.226.3F1BA3A0@localhost> Priority: normal In-reply-to: References: <41CD04B9.404@jaymax.com> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-database@freebsd.org Subject: Re: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 14:13:19 -0000 On 28 Dec 2004 at 9:08, Andy Harrison wrote: > On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell > wrote: > > I am setting up a cron job to run a shell script at 1 hr interval and to > > have the output of the script sent to a user. I have this in the cron > > file inserted by crontab > > > > cat /var/cron/tabs/whoser > > > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > # (cron_reg installed on Fri Dec 24 18:13:01 2004) > > # (Cron version -- $FreeBSD: > > src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 > > 03:18:37 peter Exp $) > > 0 1 * * * > > /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl > > MAILTO=user > > > Reread the crontab manpage. 0 1 * * * doesn't mean once per hour, it > means that it will run every day at 1AM. If you want once per hour, I > believe you can do */60 * * * * For more info, see man 5 crontab: "Steps are also permitted after an asterisk, so if you want to say ``every two hours'', just use ``*/2''." This is also once per hour: 0 * * * * ... etc That runs at the top of the hour. Some people prefer to distribute the load by running at some other time, e.g. at 8 * * * * (eight minutes after the hour). -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ From owner-freebsd-database@FreeBSD.ORG Tue Dec 28 14:14:31 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03B5316A4CE for ; Tue, 28 Dec 2004 14:14:31 +0000 (GMT) Received: from mail.day-light.net (day-light.net [64.37.72.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F2643D2F for ; Tue, 28 Dec 2004 14:14:30 +0000 (GMT) (envelope-from john@day-light.com) Received: from w1 (gabriel.day-light.net [69.27.46.22]) by mail.day-light.net (Postfix) with SMTP id 22A9A352B6; Tue, 28 Dec 2004 08:14:30 -0600 (CST) From: "John Brooks" To: "'Andy Harrison'" , "'Joseph E. Maxwell'" Date: Tue, 28 Dec 2004 08:14:29 -0600 Message-ID: <007801c4ece7$8beecca0$2005010a@daylight.net> 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 CWS, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: Importance: Normal cc: freebsd-database@freebsd.org Subject: RE: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: john@day-light.com List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 14:14:31 -0000 you probably already know this, but just in case... the command to edit a crontab is: crontab -u whoser -e (assuming that your user is named "whoser") -- John Brooks john@day-light.com > -----Original Message----- > From: owner-freebsd-database@freebsd.org > [mailto:owner-freebsd-database@freebsd.org]On Behalf Of Andy Harrison > Sent: Tuesday, December 28, 2004 8:08 AM > To: Joseph E. Maxwell > Cc: freebsd-database@freebsd.org > Subject: Re: Cron jobs setup > > > On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell > wrote: > > I am setting up a cron job to run a shell script at 1 hr > interval and to > > have the output of the script sent to a user. I have this > in the cron > > file inserted by crontab > > > > cat /var/cron/tabs/whoser > > > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > # (cron_reg installed on Fri Dec 24 18:13:01 2004) > > # (Cron version -- $FreeBSD: > > src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 > > 03:18:37 peter Exp $) > > 0 1 * * * > > > /blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl > > MAILTO=user > > > Reread the crontab manpage. 0 1 * * * doesn't mean once per hour, it > means that it will run every day at 1AM. If you want once per hour, I > believe you can do */60 * * * * > > -- > Andy Harrison > _______________________________________________ > freebsd-database@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-database > To unsubscribe, send any mail to > "freebsd-database-unsubscribe@freebsd.org" From owner-freebsd-database@FreeBSD.ORG Tue Dec 28 19:57:37 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 363A016A4CF for ; Tue, 28 Dec 2004 19:57:37 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id A499A43D1D for ; Tue, 28 Dec 2004 19:57:36 +0000 (GMT) (envelope-from jemaxwell@jaymax.com) Received: (qmail 22906 invoked from network); 28 Dec 2004 19:57:36 -0000 Received: from dsl093-045-209.sac1.dsl.speakeasy.net (HELO [192.168.2.2]) (jaymax@[66.93.45.209]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Dec 2004 19:57:35 -0000 Message-ID: <41D1BB58.6030408@jaymax.com> Date: Tue, 28 Dec 2004 12:00:24 -0800 From: "Joseph E. Maxwell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: john@day-light.com References: <007801c4ece7$8beecca0$2005010a@daylight.net> In-Reply-To: <007801c4ece7$8beecca0$2005010a@daylight.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-database@freebsd.org Subject: Re: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 19:57:37 -0000 Thanks, timing corrections made - but the MAILTO "the other user", still up in the air - any ideas on this? John Brooks wrote: >you probably already know this, but just in case... > >the command to edit a crontab is: > > crontab -u whoser -e > >(assuming that your user is named "whoser") > >-- >John Brooks >john@day-light.com > > > >>-----Original Message----- >>From: owner-freebsd-database@freebsd.org >>[mailto:owner-freebsd-database@freebsd.org]On Behalf Of Andy Harrison >>Sent: Tuesday, December 28, 2004 8:08 AM >>To: Joseph E. Maxwell >>Cc: freebsd-database@freebsd.org >>Subject: Re: Cron jobs setup >> >> >>On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell >> wrote: >> >> >>>I am setting up a cron job to run a shell script at 1 hr >>> >>> >>interval and to >> >> >>>have the output of the script sent to a user. I have this >>> >>> >>in the cron >> >> >>>file inserted by crontab >>> >>> cat /var/cron/tabs/whoser >>> >>> # DO NOT EDIT THIS FILE - edit the master and reinstall. >>> # (cron_reg installed on Fri Dec 24 18:13:01 2004) >>> # (Cron version -- $FreeBSD: >>> src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16 >>> 03:18:37 peter Exp $) >>> 0 1 * * * >>> >>> >>> >>/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl >> >> >>> MAILTO=user >>> >>> >>Reread the crontab manpage. 0 1 * * * doesn't mean once per hour, it >>means that it will run every day at 1AM. If you want once per hour, I >>believe you can do */60 * * * * >> >>-- >>Andy Harrison >>_______________________________________________ >>freebsd-database@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-database >>To unsubscribe, send any mail to >>"freebsd-database-unsubscribe@freebsd.org" >> >> > > > > From owner-freebsd-database@FreeBSD.ORG Wed Dec 29 00:41:46 2004 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA3E716A4CE for ; Wed, 29 Dec 2004 00:41:46 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61E7E43D2D for ; Wed, 29 Dec 2004 00:41:46 +0000 (GMT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 721C83D37; Tue, 28 Dec 2004 19:41:45 -0500 (EST) From: "Dan Langille" To: "Joseph E. Maxwell" Date: Tue, 28 Dec 2004 19:39:42 -0500 MIME-Version: 1.0 Message-ID: <41D1B67E.26316.415B25C4@localhost> Priority: normal In-reply-to: <41D1BB58.6030408@jaymax.com> References: <007801c4ece7$8beecca0$2005010a@daylight.net> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-database@freebsd.org Subject: Re: Cron jobs setup X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 00:41:46 -0000 On 28 Dec 2004 at 12:00, Joseph E. Maxwell wrote: > Thanks, timing corrections made - but the MAILTO "the other user", still > up in the air - any ideas on this? Put a MAILTO whereever you want, as often as you want. -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/