From owner-freebsd-questions@FreeBSD.ORG Fri Mar 11 20:21:46 2005 Return-Path: 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 6017216A4CE for ; Fri, 11 Mar 2005 20:21:46 +0000 (GMT) Received: from prosporo.hedron.org (hedron.org [66.11.182.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89CD043D39 for ; Fri, 11 Mar 2005 20:21:45 +0000 (GMT) (envelope-from ean@hedron.org) Received: from www.hedron.org (localhost.hedron.org [127.0.0.1]) by prosporo.hedron.org (Postfix) with ESMTP id C4E9AC133; Fri, 11 Mar 2005 15:22:07 -0500 (EST) Received: from 216.220.59.169 (SquirrelMail authenticated user ean); by www.hedron.org with HTTP; Fri, 11 Mar 2005 15:22:07 -0500 (EST) Message-ID: <3575.216.220.59.169.1110572527.squirrel@216.220.59.169> In-Reply-To: <20050311200223.GG29367@polands.org> References: <20050311200223.GG29367@polands.org> Date: Fri, 11 Mar 2005 15:22:07 -0500 (EST) From: "Ean Kingston" To: "Doug Poland" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: questions@freebsd.org Subject: Re: copying cron files between computers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 20:21:46 -0000 > > Hello, > > I'm want to keep the cron files between two 5.3-STABLE computers > "synchronized". From my reading on cron(8), crontab(1), and crontab(5), > accomplishing this might be a little convoluted. > > Would something like this work? > > computer-A: > > root# crontab -u joeuser -l > /usr/home/joeuser/cron > > get files from computer-A to computer-B > > > computer-B: > > root# crontab -u joeuser /usr/home/joeuser/cron It would work, but... Cron stores it's files in /var/cron/tabs/. Each user has it's own file (with the user's name). You can simply copy all (or some) of the files in that directory over to the new location. The biggest reason why you are not supposed to edit those directly is that cron can have a bit of a fit if the file format is invalid. As long as it was validated when it was first saved it should copy fine. > > As an alternative, would anyone suggest a cron replacement, like mcron? > As I read it, mcron stores it's files in a users ~/.cron directory. > Thereby eliminating the dump and read of each user's cron. > > Thanks for the help and suggestions. > > -- > Regards, > Doug > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Ean Kingston E-Mail: ean_AT_hedron_DOT_org PGP KeyID: 1024D/CBC5D6BB URL: http://www.hedron.org/