Re: crontab

2010-02-04 Thread krad
On 3 February 2010 15:49, Lowell Gilbert < freebsd-questions-lo...@be-well.ilk.org> wrote: > Nadir Aliyev writes: > > > Hello friends. > > > > I have interesting situation with cron. > > > > I created a > > simple script for process monitoring: > > > > #!/usr/local/bin/bash > > processname=`/bin/

Re: crontab

2010-02-03 Thread Lowell Gilbert
Nadir Aliyev writes: > Hello friends. > > I have interesting situation with cron. > > I created a > simple script for process monitoring: > > #!/usr/local/bin/bash > processname=`/bin/ps aux | /usr/bin/grep -v grep | > /usr/bin/grep -c 'maintenance_jobs.php'` > if [ $processname -le "0" ]; > th

Re: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Kaya Saman
Glen Barber wrote: Rolf Nielsen wrote: On 2010-01-13 22:04, Jeronimo Calvo wrote: did a crontab -r, a a new crontab -e, using: * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl In addition to the other

Re: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Glen Barber
Rolf Nielsen wrote: > On 2010-01-13 22:04, Jeronimo Calvo wrote: > > did a crontab -r, a a new crontab -e, using: > > > > * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh > > * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl > > In addition to the other suggestions, I'd i

Re: Crontab not working??

2010-01-13 Thread Thomas K.
On Thu, Jan 14, 2010 at 02:20:07AM +0200, Kaya Saman wrote: Hi, > @reboot root/usr/local/sbin/logwatch.pl > 02 4 * * * root/usr/local/sbin/logwatch.pl this format/syntax is only valid for the system contab. > The interesting thing here is that it shows them as being run: >

Re: Crontab not working??

2010-01-13 Thread Kaya Saman
Thanks, I inputted the data as you suggested so now I will wait until the time specified to see if it ran or not! Regards, Kaya Chuck Swiger wrote: Hi-- On Jan 13, 2010, at 4:20 PM, Kaya Saman wrote: It didn't work so I tried to cut down areas which I suspected might not work and ended

Re: Crontab not working??

2010-01-13 Thread Chuck Swiger
Hi-- On Jan 13, 2010, at 4:20 PM, Kaya Saman wrote: > It didn't work so I tried to cut down areas which I suspected might not work > and ended up with the syntax below for root: > > crontab -l shows: > > @reboot root/usr/local/sbin/logwatch.pl > 02 4 * * * root/usr/local/s

Re: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Rolf Nielsen
On 2010-01-13 22:04, Jeronimo Calvo wrote: did a crontab -r, a a new crontab -e, using: * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl tailing the /var/log/cron I can see that is being executed every minute... but no e

Re: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Jeronimo Calvo
did a crontab -r, a a new crontab -e, using: * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl tailing the /var/log/cron I can see that is being executed every minute... but no emails arrived with is the proof that the scri

Re: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Rolf Nielsen
On 2010-01-13 21:43, Jeronimo Calvo wrote: Hi folks, Im having probs when a root crontab located on /var/cron/tabs/root with this content # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.DUtgfVoBT0 installed on Wed Jan 13 20:08:29 2010) # (Cron version -- $FreeBSD: src/u

Re: Crontab for different ime zones

2009-05-24 Thread GT
On Sun, 2009-05-24 at 18:45 -0600, Tim Judd wrote: > How about a jail for America/NY, and a jail for AU/Sydney? that might > work. > > > --TJ > That's a good solution, but I am still somewhat puzzled by cron's behaviour relative to what I expected from the man page. >From the man page for

Re: Crontab for different ime zones

2009-05-24 Thread Tim Judd
On Sun, May 24, 2009 at 5:31 PM, GT wrote: > On Sat, 2009-05-23 at 23:41 -0600, Tim Judd wrote: > > > > > > > > > > > I propose the following: > > cron itself has no concept of timezone. it is 'date' that is picking > up > > TZ and reporting as such. Cron's job is so simple is that it wakes

Re: Crontab for different ime zones

2009-05-24 Thread GT
On Sat, 2009-05-23 at 23:41 -0600, Tim Judd wrote: > > > > > I propose the following: > cron itself has no concept of timezone. it is 'date' that is picking up > TZ and reporting as such. Cron's job is so simple is that it wakes up each > minute to see if it has work to do, regardless of t

Re: Crontab for different ime zones

2009-05-23 Thread Tim Judd
On Sat, May 23, 2009 at 9:46 PM, GT wrote: > Late entry to this thread, but... > > I thought I had found an answer to this; at present I think I might have > been mistaken. > > My crontab has about a dozen jobs that need to run in > TZ=America/New_York, and another dozen that ideally want > TZ=Au

Re: Crontab for different ime zones

2009-05-23 Thread Gustavo De Nardin
2009/5/24 GT : > Late entry to this thread, but... > > I thought I had found an answer to this; at present I think I might have > been mistaken. > > My crontab has about a dozen jobs that need to run in > TZ=America/New_York, and another dozen that ideally want > TZ=Australia/Sydney... the server d

Re: Crontab for different ime zones

2009-03-31 Thread Colin House
Mel Flynn wrote: .. > > Once a year, since you can use months and days. In fact, iirc DST changes are > known 5 years ahead (I'm sure I"ll be corrected if this is not the case) so > one can even run a yearly cronjob to change the crontab ;) > .. You might want to mention that to the Australi

Re: Crontab for different ime zones

2009-03-31 Thread Mel Flynn
On Tuesday 31 March 2009 09:56:14 Olivier Nicole wrote: > > > Is there a way to start jobs with cron using different a time-zone > > > different from local time zone? > > > > > > I am in a TZ that has no Daylight Savings Time, and would like to > > > start a job (reccording of a web cast) in a TZ t

Re: Crontab for different ime zones

2009-03-31 Thread Olivier Nicole
> > Is there a way to start jobs with cron using different a time-zone > > different from local time zone? > > > > I am in a TZ that has no Daylight Savings Time, and would like to > > start a job (reccording of a web cast) in a TZ that has DST (so with a > > time difference that changes along the

Re: Crontab for different ime zones

2009-03-30 Thread Mel Flynn
On Tuesday 31 March 2009 06:52:29 Olivier Nicole wrote: > Hi, > > Is there a way to start jobs with cron using different a time-zone > different from local time zone? > > I am in a TZ that has no Daylight Savings Time, and would like to > start a job (reccording of a web cast) in a TZ that has DST

Re: Crontab and adjkerntz.

2008-08-26 Thread Ian Smith
On Tue, 26 Aug 2008 16:05:13 +0200 Leslie Jensen <[EMAIL PROTECTED]> wrote: > I have a machine that only runs during office hours. I've rescheduled > the periodic jobs in crontab so that they run when the machine is on. > > My question is can I reschedule the adjkerntz job as well, without

Re: Crontab and adjkerntz.

2008-08-26 Thread Matthew Seaman
Andrew D wrote: Leslie Jensen wrote: I have a machine that only runs during office hours. I've rescheduled the periodic jobs in crontab so that they run when the machine is on. My question is can I reschedule the adjkerntz job as well, without causing any problems? I'm concerned because the

Re: Crontab and adjkerntz.

2008-08-26 Thread Andrew D
Leslie Jensen wrote: I have a machine that only runs during office hours. I've rescheduled the periodic jobs in crontab so that they run when the machine is on. My question is can I reschedule the adjkerntz job as well, without causing any problems? I'm concerned because the job is set to run

Re: crontab mails

2008-07-26 Thread Jerry McAllister
On Sat, Jul 26, 2008 at 08:18:14PM +0800, Jyun-Yi Liou wrote: > Hi Yavuz, > It's easy to tell crontab stop sending mail to you by disable sendmail in > /etc/rc.conf > > %> echo "sendmail_enable=\"NO\"" > man rc.conf for more information :-) Kind of overkill, don't you think? Sendmail does more t

Re: crontab mails

2008-07-26 Thread Jyun-Yi Liou
Hi Yavuz, It's easy to tell crontab stop sending mail to you by disable sendmail in /etc/rc.conf %> echo "sendmail_enable=\"NO\"" man rc.conf for more information :-) or set the variable MAILTO null on corntab MAILTO="" Regards, jyuny1 2008/7/26 Yavuz Maslak <[EMAIL PROTECTED]> > Hello > > On

Re: crontab mails

2008-07-25 Thread Sahil Tandon
Yavuz Maslak <[EMAIL PROTECTED]> wrote: > On freebsd7.0, my crontab sends many mails about its jobs. > > I want crontab not to send these mails > > How can I do that ? This is somewhat of a FAQ; see: http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/038638.html -- Sahil Tandon

Re: Crontab Not Sending Email - nrcpts=0

2008-06-25 Thread Derek Ragona
At 01:34 PM 6/25/2008, Schiz0 wrote: Hey, I have another odd problem. Cron refuses to send any emails. Here's what DID work: -Sending email via /usr/bin/mail on command line -Having a crontab run a script which in turn sends an email -Piping the output of a crontab command into /usr/bin/mail. S

Re: Crontab Not Sending Email - nrcpts=0

2008-06-25 Thread N.J. Mann
In message <[EMAIL PROTECTED]>, Schiz0 ([EMAIL PROTECTED]) wrote: > > I have another odd problem. Cron refuses to send any emails. Here's > what DID work: [...] I also see this, both on 6-STABLE and 7-STABLE. I have not tried 8-CURRENT. This is what I have found so far. After cron has

Re: Crontab @reboot directive

2008-04-22 Thread Jerry McAllister
On Tue, Apr 22, 2008 at 05:03:41PM -0400, Robert Huff wrote: > > andrew clarke writes: > > > > > @reboot /usr/local/bin/fetchmail -d 120 > > > > > > Is there a specific reason that you choose to do that rather than > > > starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file

Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 17:03:41 UTC-0400, Robert Huff ([EMAIL PROTECTED]) wrote: > > > > @reboot /usr/local/bin/fetchmail -d 120 > > > > > > Is there a specific reason that you choose to do that rather than > > > starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file? > > > > Si

Re: Crontab @reboot directive

2008-04-22 Thread Robert Huff
andrew clarke writes: > > > @reboot /usr/local/bin/fetchmail -d 120 > > > > Is there a specific reason that you choose to do that rather than > > starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file? > > Since I have root access on that machine, yes I could do that. But

Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 16:34:56 UTC-0400, Gerard ([EMAIL PROTECTED]) wrote: > > @reboot /usr/local/bin/fetchmail -d 120 > > Is there a specific reason that you choose to do that rather than > starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file? Since I have root access on that mach

Re: Crontab @reboot directive

2008-04-22 Thread Gerard
On Tue, 22 Apr 2008 21:18:26 +1000 andrew clarke <[EMAIL PROTECTED]> wrote: > On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot > ([EMAIL PROTECTED]) wrote: > > > If I want to start a program at every system reboot and the program > > should not be started by root, is it enough for me to edit

Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) wrote: > If I want to start a program at every system reboot and the program should > not be started by root, is it enough for me to edit a users crontab with > the following directive? > > @reboot /path/to/file.sh Yes. T

Re: crontab configuration in FreeBSd -6.2

2007-06-27 Thread Lowell Gilbert
See the FAQ entry titled "Why do I keep getting messages like “root: not found” after editing my crontab file?" http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS -- Lowell Gilbert, embedded/networking software engineer, Boston area

Re: crontab configuration in FreeBSd -6.2

2007-06-27 Thread Pieter de Goeje
On Wednesday 27 June 2007, dhaneshk k wrote: > Hi all > > I need to configure a crontab for a FreeBSD -6.2 box . > > >To test it , as root user I entered a line into the /etc/crontab > by using easyeditor as follows > 50 21 * * * root/root/test

Re: crontab error

2007-06-19 Thread Bill Moran
In response to "Steve Franks" <[EMAIL PROTECTED]>: > In my crontab the following: > > @reboot /usr/local/sbin/ataidle -I 5 0 0 > > gives me: > > cron: login_getclass unknown class 'ataidle' > > on reboot. What am I missing? My guess is that you put that line in /etc/crontab, thus the format

Re: crontab entries not executing

2006-09-03 Thread Matthew Seaman
Noah wrote: > I just rebuilt a new 5.5 server and I am finding root's crontab entries > are not being executed. any body got some clues about how I can > troubleshoot this issue so my cron entries are bring executed. Verify that root's crontab does anything at all by running a simple command eve

Re: crontab doesn't work

2006-03-24 Thread RW
On Friday 24 March 2006 21:52, Kevin Kinsey wrote: > 3. Reasoning: It appears that you have modified /etc/crontab. > In BSD-land, you usually want to use the "root" crontab (which > is under /var/cron/tabs/root) or your personal account > crontab (/var/cron/tabs/username) to do cron work. What'

Re: crontab doesn't work

2006-03-24 Thread Kevin Kinsey
Rodrigo G. Tavares de Souza wrote: Hi, Do I have to start something to crontab works? configuration file: # MINHOUR DAY/MONTH MONTH DAY/WEEK USERCOMMAND 59 23 *** root "/usr/local/etc/sarg/make-report" 0 0

Re: crontab doesn't work

2006-03-24 Thread Eric Schuele
Rodrigo G. Tavares de Souza wrote: Hi, Do I have to start something to crontab works? configuration file: # MINHOUR DAY/MONTH MONTH DAY/WEEK USERCOMMAND 59 23 *** root "/usr/local/etc/sarg/make-report" 0 0

Re: crontab doesn't work

2006-03-24 Thread Demian
Rodrigo G. Tavares de Souza wrote: Hi, Do I have to start something to crontab works? configuration file: # MINHOUR DAY/MONTH MONTH DAY/WEEK USERCOMMAND 59 23 *** root "/usr/local/etc/sarg/make-report" 0 0

Re: Crontab and GPG?

2005-10-26 Thread Bob Hall
On Wed, Oct 26, 2005 at 08:06:28PM -0400, Kris Kennaway wrote: > On Wed, Oct 26, 2005 at 07:51:03PM -0400, Bob Hall wrote: > > On Wed, Oct 26, 2005 at 12:31:44PM -0400, Kris Kennaway wrote: > > > On Wed, Oct 26, 2005 at 11:23:29AM -0400, Bob Hall wrote: > > > > On Wed, Oct 26, 2005 at 03:52:53AM -0

Re: Crontab and GPG?

2005-10-26 Thread Kris Kennaway
On Wed, Oct 26, 2005 at 07:51:03PM -0400, Bob Hall wrote: > On Wed, Oct 26, 2005 at 12:31:44PM -0400, Kris Kennaway wrote: > > On Wed, Oct 26, 2005 at 11:23:29AM -0400, Bob Hall wrote: > > > On Wed, Oct 26, 2005 at 03:52:53AM -0400, Kris Kennaway wrote: > > > > On Tue, Oct 25, 2005 at 07:10:57PM -0

Re: Crontab and GPG?

2005-10-26 Thread Bob Hall
On Wed, Oct 26, 2005 at 12:31:44PM -0400, Kris Kennaway wrote: > On Wed, Oct 26, 2005 at 11:23:29AM -0400, Bob Hall wrote: > > On Wed, Oct 26, 2005 at 03:52:53AM -0400, Kris Kennaway wrote: > > > On Tue, Oct 25, 2005 at 07:10:57PM -0400, Bob Hall wrote: > > > > On Tue, Oct 25, 2005 at 03:00:18PM -0

Re: Crontab and GPG?

2005-10-26 Thread Kris Kennaway
On Wed, Oct 26, 2005 at 11:23:29AM -0400, Bob Hall wrote: > On Wed, Oct 26, 2005 at 03:52:53AM -0400, Kris Kennaway wrote: > > On Tue, Oct 25, 2005 at 07:10:57PM -0400, Bob Hall wrote: > > > On Tue, Oct 25, 2005 at 03:00:18PM -0400, Kris Kennaway wrote: > > > > On Tue, Oct 25, 2005 at 02:45:02PM -0

Re: Crontab and GPG?

2005-10-26 Thread Bob Hall
On Wed, Oct 26, 2005 at 03:52:53AM -0400, Kris Kennaway wrote: > On Tue, Oct 25, 2005 at 07:10:57PM -0400, Bob Hall wrote: > > On Tue, Oct 25, 2005 at 03:00:18PM -0400, Kris Kennaway wrote: > > > On Tue, Oct 25, 2005 at 02:45:02PM -0400, Bob Hall wrote: > > > > On Tue, Oct 25, 2005 at 01:13:52PM -0

Re: Crontab and GPG?

2005-10-26 Thread Kris Kennaway
On Tue, Oct 25, 2005 at 07:10:57PM -0400, Bob Hall wrote: > On Tue, Oct 25, 2005 at 03:00:18PM -0400, Kris Kennaway wrote: > > On Tue, Oct 25, 2005 at 02:45:02PM -0400, Bob Hall wrote: > > > On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: > > > > Hello! I'm attempting to run GPG from

Re: Crontab and GPG?

2005-10-25 Thread Bob Hall
On Tue, Oct 25, 2005 at 03:00:18PM -0400, Kris Kennaway wrote: > On Tue, Oct 25, 2005 at 02:45:02PM -0400, Bob Hall wrote: > > On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: > > > Hello! I'm attempting to run GPG from cron, and it's not working. I can > > > run the script from the

Re: Crontab and GPG?

2005-10-25 Thread Dan Busarow
On Oct 25, 2005, at 12:18 PM, Kris Kennaway wrote: On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: Hello! I'm attempting to run GPG from cron, and it's not working. I can run the script from the command line, and all works perfectly. When I try to run it from cron, however,

Re: Crontab and GPG?

2005-10-25 Thread Kris Kennaway
On Tue, Oct 25, 2005 at 02:45:02PM -0400, Bob Hall wrote: > On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: > > Hello! I'm attempting to run GPG from cron, and it's not working. I can > > run the script from the command line, and all works perfectly. When I try > > to run it from

Re: Crontab and GPG?

2005-10-25 Thread Bob Hall
On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: > Hello! I'm attempting to run GPG from cron, and it's not working. I can run > the script from the command line, and all works perfectly. When I try to run > it from cron, however, it doesn't work. The crontab calls this script, >

Re: Crontab and GPG?

2005-10-25 Thread N.J. Thomas
* Robert Wall <[EMAIL PROTECTED]> [2005-10-25 13:13:52 -0500]: > I'm attempting to run GPG from cron, and it's not working. I can run > the script from the command line, and all works perfectly. When I try > to run it from cron, however, it doesn't work. Run /usr/bin/env (or wherever env is locate

Re: Crontab and GPG?

2005-10-25 Thread Kris Kennaway
On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote: > Hello! I'm attempting to run GPG from cron, and it's not working. I can run > the script from the command line, and all works perfectly. When I try to run > it from cron, however, it doesn't work. The crontab calls this script, >

Re: crontab : day-of-month support for last-day-of-month

2005-08-30 Thread Nicolas Blais
On August 30, 2005 11:16 am, Kevin Kinsey wrote: > Nicolas Blais wrote: > >Hi, > > > >Does our crontab allow the use of "L" (as found on > >http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator > >=printable) in the day-of-month field which would allow for a job to run > > on a

Re: crontab : day-of-month support for last-day-of-month

2005-08-30 Thread Kevin Kinsey
Nicolas Blais wrote: Hi, Does our crontab allow the use of "L" (as found on http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator=printable) in the day-of-month field which would allow for a job to run on a 31th or feb 28? It would be useful for certain apps like /www/

Re: crontab : day-of-month support for last-day-of-month

2005-08-30 Thread Lowell Gilbert
Nicolas Blais <[EMAIL PROTECTED]> writes: > Does our crontab allow the use of "L" (as found on > http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator=printable) > > in the day-of-month field which would allow for a job to run on a 31th or feb > 28? > > It would be usefu

Re: crontab synatx

2005-03-01 Thread Lowell Gilbert
"Eugene M. Minkovskii" <[EMAIL PROTECTED]> writes: > I put in my crontab following string: > > # min hour mday month wday command > 0 7*/3 * * echo "Hello world" > > So, I hope, this command will be workind every third day: > 3,6,9,12 etc, because at man crontab we read: > > >

Re: Crontab script

2005-02-13 Thread Kövesdán Gábor
Hello, thanks a lot, it is a more advanced idea, I'll consider using it, but since then I've realized what caused my problem. I mistyped a line, and I should have written 2>&1 instead of 2>$1. I haven't been very advanced in shell scripting yet. :) Cheers, Gábor Paul Schmehl wrote: - Origin

Re: Crontab script

2005-02-13 Thread Paul Schmehl
- Original Message - From: "Kövesdán Gábor" <[EMAIL PROTECTED]> To: Sent: Sunday, February 13, 2005 1:13 PM Subject: Crontab script Hi, I've seen somewhere an easy way to check whether a program with a specified pid is running or not. I've made a crontab script to check my programs ba

Re: crontab file

2004-12-30 Thread Louis LeBlanc
On 12/30/04 01:30 PM, Mike Jeays sat at the `puter and typed: > On Thu, 2004-12-30 at 12:15, Leon wrote: > > Hi All, > > > > I edited "crontab" file to update my ports every day at certain time. > > But , when time comes, I do not see any information on the screen, that > > something was updated.

Re: crontab file

2004-12-30 Thread Mike Jeays
On Thu, 2004-12-30 at 12:15, Leon wrote: > Hi All, > > I edited "crontab" file to update my ports every day at certain time. > But , when time comes, I do not see any information on the screen, that > something was updated. > Should the system sow any information about update or not? > If not, ho

Re: Crontab file (root user)

2004-09-17 Thread Lowell Gilbert
"Steve Bertrand" <[EMAIL PROTECTED]> writes: > I'm wondering where the crontab is located for the root user. I know > there is the system crontab in /etc, however doing a #crontab -e when > su'd to root, it comes up with a different crontab. Right. Just as you said: the former is the system cro

Re: Crontab file (root user)

2004-09-17 Thread Steve Bertrand
> On Fri, 17 Sep 2004 09:36:01 -0400 (EDT), Steve Bertrand > <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I'm wondering where the crontab is located for the root user. I know >> there is the system crontab in /etc, however doing a #crontab -e >> when >> su'd to root, it comes up with a different cro

Re: Crontab file (root user)

2004-09-17 Thread Renato Botelho
On Fri, 17 Sep 2004 09:36:01 -0400 (EDT), Steve Bertrand <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm wondering where the crontab is located for the root user. I know > there is the system crontab in /etc, however doing a #crontab -e when > su'd to root, it comes up with a different crontab. > >

Re: crontab question involving cvsup

2004-08-28 Thread Viktor Lazlo
On Thu, 26 Aug 2004, Joshua Tinnin wrote: > > >>man cron gives: > > >> > > >>crontab [-u user] file > > >> > > >>'file' being the important part, methinks. ;) > > > > > >I'm not sure what you mean ... If you're wondering, I'm using the > > > main crontab file (/etc/crontab), as right now there's

Re: crontab question involving cvsup

2004-08-27 Thread Joshua Tinnin
On Thursday 26 August 2004 04:04 pm, "Kevin D. Kinsey, DaleCo, S.P." <[EMAIL PROTECTED]> wrote: > Joshua Tinnin wrote: > >On Thursday 26 August 2004 08:28 am, "Kevin D. Kinsey, DaleCo, S.P." > > > ><[EMAIL PROTECTED]> wrote: > >>Unlike the system crontab, user crontabs, including root's, are > >>u

Re: crontab question involving cvsup

2004-08-26 Thread Kevin D. Kinsey, DaleCo, S.P.
Joshua Tinnin wrote: On Thursday 26 August 2004 08:28 am, "Kevin D. Kinsey, DaleCo, S.P." <[EMAIL PROTECTED]> wrote: Unlike the system crontab, user crontabs, including root's, are under /var/cron; the file format is slightly different, and misuse of the system crontab for regular jobs is the c

Re: crontab question involving cvsup

2004-08-26 Thread Ion-Mihai Tetcu
On Thu, 26 Aug 2004 13:48:19 -0700 kstewart <[EMAIL PROTECTED]> wrote: > On Thursday 26 August 2004 01:15 pm, Joshua Tinnin wrote: > > On Thursday 26 August 2004 02:28 am, kstewart <[EMAIL PROTECTED]> > > wrote: > > > On Thursday 26 August 2004 01:09 am, Joshua Tinnin wrote: > > > > On Thursday 26

Re: crontab question involving cvsup

2004-08-26 Thread kstewart
On Thursday 26 August 2004 01:15 pm, Joshua Tinnin wrote: > On Thursday 26 August 2004 02:28 am, kstewart <[EMAIL PROTECTED]> wrote: > > On Thursday 26 August 2004 01:09 am, Joshua Tinnin wrote: > > > On Thursday 26 August 2004 12:42 am, epilogue > > > <[EMAIL PROTECTED]> > > > > > > wrote: > > > >

Re: crontab question involving cvsup

2004-08-26 Thread Joshua Tinnin
On Thursday 26 August 2004 02:28 am, kstewart <[EMAIL PROTECTED]> wrote: > On Thursday 26 August 2004 01:09 am, Joshua Tinnin wrote: > > On Thursday 26 August 2004 12:42 am, epilogue > > <[EMAIL PROTECTED]> > > > > wrote: > > > On Thu, 26 Aug 2004 00:07:26 -0700 > > > > > > Joshua Tinnin <[EMAIL PR

Re: crontab question involving cvsup

2004-08-26 Thread Joshua Tinnin
On Thursday 26 August 2004 08:28 am, "Kevin D. Kinsey, DaleCo, S.P." <[EMAIL PROTECTED]> wrote: > Joshua Tinnin wrote: > >On Thursday 26 August 2004 12:42 am, epilogue > > <[EMAIL PROTECTED]> > > > >wrote: > >>On Thu, 26 Aug 2004 00:07:26 -0700 > >> > >>Joshua Tinnin <[EMAIL PROTECTED]> wrote: > >

Re: crontab question involving cvsup

2004-08-26 Thread Charles Ulrich
Paul Schmehl said: > Just out of curiosity, why would you use cron rather than > /etc/periodic/daily? If you want something to run at a different time of day than the daily scripts. You could modify /etc/crontab and move the time around, but the rest of the scripts still follow and most of us hav

Re: crontab question involving cvsup

2004-08-26 Thread Radek Kozlowski
On Thu, Aug 26, 2004 at 11:48:53AM -0400, Lucas Holt wrote: > Here is my setup which works: > > crontab -e yeilds > 0 1 * * * /bin/sh /root/bin/port.sh 2>&1 | mail root > > port.sh contains: > #!/bin/sh > > /usr/local/bin/cvsup /etc/ports-supfile > /usr/local/sbin/portsdb -Uu > /usr/local/

Re: crontab question involving cvsup

2004-08-26 Thread Paul Schmehl
--On Thursday, August 26, 2004 12:07:26 AM -0700 Joshua Tinnin <[EMAIL PROTECTED]> wrote: OK, I have searched the archives, and I can't find that my question has been answered previously, but please forgive me if that's incorrect. I'm using (or rather trying to use) cron to update my ports tree d

Re: crontab question involving cvsup

2004-08-26 Thread Lucas Holt
Here is my setup which works: crontab -e yeilds 0 1 * * * /bin/sh /root/bin/port.sh 2>&1 | mail root port.sh contains: #!/bin/sh /usr/local/bin/cvsup /etc/ports-supfile /usr/local/sbin/portsdb -Uu /usr/local/sbin/portversion -v | /usr/bin/grep "<" then this gets mailed to me everyday with the

Re: crontab question involving cvsup

2004-08-26 Thread Kevin D. Kinsey, DaleCo, S.P.
Joshua Tinnin wrote: On Thursday 26 August 2004 12:42 am, epilogue <[EMAIL PROTECTED]> wrote: On Thu, 26 Aug 2004 00:07:26 -0700 Joshua Tinnin <[EMAIL PROTECTED]> wrote: OK, I have searched the archives, and I can't find that my question has been answered previously, but please forgive me

Re: crontab question involving cvsup

2004-08-26 Thread kstewart
On Thursday 26 August 2004 01:09 am, Joshua Tinnin wrote: > On Thursday 26 August 2004 12:42 am, epilogue <[EMAIL PROTECTED]> > > wrote: > > On Thu, 26 Aug 2004 00:07:26 -0700 > > > > Joshua Tinnin <[EMAIL PROTECTED]> wrote: > > > OK, I have searched the archives, and I can't find that my question

Re: crontab question involving cvsup

2004-08-26 Thread Joshua Tinnin
On Thursday 26 August 2004 12:42 am, epilogue <[EMAIL PROTECTED]> wrote: > On Thu, 26 Aug 2004 00:07:26 -0700 > > Joshua Tinnin <[EMAIL PROTECTED]> wrote: > > OK, I have searched the archives, and I can't find that my question > > has been answered previously, but please forgive me if that's > > i

Re: crontab question involving cvsup

2004-08-26 Thread Joshua Tinnin
On Thursday 26 August 2004 12:19 am, Subhro Kar <[EMAIL PROTECTED]> wrote: > First of all, you need to read the manual page for cvsup. It is > clearly stated that the option -L shows the amount of verbosity cvsup > maintains. If you are running it from inside a script, then either > you have to >

Re: crontab question involving cvsup

2004-08-26 Thread epilogue
On Thu, 26 Aug 2004 00:07:26 -0700 Joshua Tinnin <[EMAIL PROTECTED]> wrote: > OK, I have searched the archives, and I can't find that my question has > been answered previously, but please forgive me if that's incorrect. > > I'm using (or rather trying to use) cron to update my ports tree daily.

Re: crontab question involving cvsup

2004-08-26 Thread Subhro Kar
First of all, you need to read the manual page for cvsup. It is clearly stated that the option -L shows the amount of verbosity cvsup maintains. If you are running it from inside a script, then either you have to reduce the verbosity to 1 ie, the command will be cvsup -g -L 1 supfile OR redirect th

RE: crontab question involving cvsup

2004-08-26 Thread Ivailo Tanusheff
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Tinnin Sent: Thursday, August 26, 2004 10:07 AM To: FreeBSD-questions Subject: crontab question involving cvsup OK, I have searched the archives, and I can't find that my question has been answered

RE: crontab perl script execution

2004-05-13 Thread JJB
On Fri, 2004-05-14 at 12:27, JJB wrote: > I have perl script A. which runs 2 other perl scripts B. & C. When A > is run from command line B & C get run. When I put script A in > /etc/corntab I can see that A does in deed get run, but scripts B & > C do not. I looked in /var/log/cron and /var/log/m

RE: crontab perl script execution

2004-05-13 Thread JJB
On Fri, 2004-05-14 at 12:27, JJB wrote: > I have perl script A. which runs 2 other perl scripts B. & C. When A > is run from command line B & C get run. When I put script A in > /etc/corntab I can see that A does in deed get run, but scripts B & > C do not. I looked in /var/log/cron and /var/log/m

Re: crontab perl script execution

2004-05-13 Thread Kiel Stirling
On Fri, 2004-05-14 at 12:27, JJB wrote: > I have perl script A. which runs 2 other perl scripts B. & C. When A > is run from command line B & C get run. When I put script A in > /etc/corntab I can see that A does in deed get run, but scripts B & > C do not. I looked in /var/log/cron and /var/log/me

Re: crontab email

2004-03-04 Thread Matthew Seaman
On Thu, Mar 04, 2004 at 10:56:55AM -0600, Brian Henning wrote: > Everytime something runs from the the crontab for a given user such as root, I > get an email with the results of the execution. I am running a few crontabs that > run every 2 minutes and this gets to be a lot of excess email. How ca

Re: crontab email

2004-03-04 Thread Svein Halvor Halvorsen
[Brian Henning, 2004-03-04] > Everytime something runs from the the crontab for a given user such as root, I > get an email with the results of the execution. I am running a few crontabs that > run every 2 minutes and this gets to be a lot of excess email. How can I turn > off this feature. Y

Re: crontab email

2004-03-04 Thread Peter Risdon
Brian Henning wrote: Greetings: Everytime something runs from the the crontab for a given user such as root, I get an email with the results of the execution. I am running a few crontabs that run every 2 minutes and this gets to be a lot of excess email. How can I turn off this feature. #man 5

Re: crontab question

2004-02-19 Thread Matt Emmerton
> Greetings, > I am running 5.1-release. I created the file > /var/cron/tabs/root . It is owner root, group wheel. > permissions are -rw--- > > I have the following entry in the file root > > 0 22 2-31 * * /usr/local/bin/rsync -av /dept2/Marketing/ /data/Marketing > 2>&1 /r > oot/rsync.log >

RE: crontab question

2004-02-19 Thread Derrick Ryalls
> Greetings, > I am running 5.1-release. I created the file > /var/cron/tabs/root . It is owner root, group wheel. > permissions are -rw--- > > I have the following entry in the file root > > 0 22 2-31 * * /usr/local/bin/rsync -av /dept2/Marketing/ > /data/Marketing > 2>&1 /r > oot/rsync

Re: Crontab question

2004-02-12 Thread Nathan Kinkade
On Thu, Feb 12, 2004 at 04:06:56PM -0600, Darryl Hoar wrote: > Greetings, > I am running 5.1-release. > I have installed rsync from ports, and want to use it to archive. > I want to add an entry to cron so it runs nightly. I didn't quite > understand the man page when it came to arguments to the

Re: crontab

2003-11-26 Thread Kevin D. Kinsey, DaleCo, S.P.
Chris wrote: Kevin D. Kinsey, DaleCo, S.P. wrote: [EMAIL PROTECTED] wrote: Hi, I have a number of scripts that run every night using a crontab. In my crontab file I'm using the MAILTO flag to get cron to email me every time it runs which results in a lot of emails. Is there any way of instr

Re: crontab

2003-11-26 Thread ander Sendzimir
Have you checked out /etc/defaults/periodic.conf? On Wednesday, November 26, 2003, at 12:55 PM, Chris wrote: Kevin D. Kinsey, DaleCo, S.P. wrote: [EMAIL PROTECTED] wrote: Hi, I have a number of scripts that run every night using a crontab. In my crontab file I'm using the MAILTO flag to get c

Re: crontab

2003-11-26 Thread Matthew Seaman
On Wed, Nov 26, 2003 at 11:55:54AM -0600, Chris wrote: [ Redirecting output of cron jobs ] > Very cool! Now, what if you do the same, but instead of the normal > crons, can something like this be done with the /etc/periodic/daily, > weekly, and monthly routines? If you don't have one already, c

Re: crontab

2003-11-26 Thread Chris
Kevin D. Kinsey, DaleCo, S.P. wrote: [EMAIL PROTECTED] wrote: Hi, I have a number of scripts that run every night using a crontab. In my crontab file I'm using the MAILTO flag to get cron to email me every time it runs which results in a lot of emails. Is there any way of instructing cron to

Re: crontab

2003-11-26 Thread Lowell Gilbert
[EMAIL PROTECTED] writes: > Is there any way of instructing cron to only email me if the cron job > fails? Mail is only sent if there is output. Make sure there's no output if the job succeeds (perhaps by redirecting it) and you'll be all set. ___ [EM

Re: crontab

2003-11-26 Thread Charles Howse
On Wednesday 26 November 2003 10:41 am, [EMAIL PROTECTED] wrote: > Hi, > > I have a number of scripts that run every night using a crontab. In my > crontab file I'm using the MAILTO flag to get cron to email me every > time it runs which results in a lot of emails. > > Is there any way of instruct

Re: crontab

2003-11-26 Thread Kevin D. Kinsey, DaleCo, S.P.
[EMAIL PROTECTED] wrote: Hi, I have a number of scripts that run every night using a crontab. In my crontab file I'm using the MAILTO flag to get cron to email me every time it runs which results in a lot of emails. Is there any way of instructing cron to only email me if the cron job fails?

Re: crontab

2003-11-12 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Wednesday 12 November 2003 21:13, Darryl Hoar wrote: > commented out.  Do I have to create this file from > scratch ? Yes. 'man 5 crontab' for examples. - -- Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED] Web: http://chrishowe

Re: crontab

2003-11-12 Thread Luke Kearney
On Wed, 12 Nov 2003 15:13:34 -0600 "Darryl Hoar" <[EMAIL PROTECTED]> granted us these pearls of wisdom: > Greetings, > I am running 4.7 and want to use cron to run a command. > when I look in /var/cron/tabs, there is not a file for root. > If I do a crontab -e its blank. > > I thought there was

  1   2   >