Re: Newbie question: Why aren't my cron jobs running?

2012-06-13 Thread Walter Hurry
On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote: The syntax of his crontab file is correct. Vixie cron does care about leading spaces, tabs, extra spaces, or leading zeros. Earlier versions of cron are much pickier about the crontab file. The cron logs show that it is starting his

Re: Newbie question: Why aren't my cron jobs running?

2012-06-13 Thread Chris
On 6/13/2012 6:23 PM, Walter Hurry wrote: On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote: The syntax of his crontab file is correct. Vixie cron does care about leading spaces, tabs, extra spaces, or leading zeros. Earlier versions of cron are much pickier about the crontab file. The

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Ramiro Caso
On 11/06/2012 23:10, Michael Sierchio wrote: On Mon, Jun 11, 2012 at 7:04 PM, Walter Hurry walterhu...@gmail.com wrote: As the subject says, this is probably a newbie question (I am new to FreeBSD but quite experienced at Linux). FreeBSD9 on x86_64. Cron is running: $ ps -ax|grep cron

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Mark Felder
On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi bon...@mail.r-bonomi.com wrote: Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- you are *strongly* encocuraged to remove them. Yes, that means numbers will not be column aligned, but it is a small price to pay to

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Lowell Gilbert
Mark Felder f...@feld.me writes: On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi bon...@mail.r-bonomi.com wrote: Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- you are *strongly* encocuraged to remove them. Yes, that means numbers will not be column aligned,

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Mark Felder
On Tue, 12 Jun 2012 09:36:37 -0500, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: I don't have ready access to source at the moment, but I would expect (like the normal C I/O functions) it will be interpreted as octal. Suppose we could always ask Paul Vixie :-)

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Polytropon
On Tue, 12 Jun 2012 08:29:02 -0500, Mark Felder wrote: On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi bon...@mail.r-bonomi.com wrote: Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- you are *strongly* encocuraged to remove them. Yes, that means numbers

Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Dan Lists
On Tue, Jun 12, 2012 at 12:06 PM, Polytropon free...@edvax.de wrote: On Tue, 12 Jun 2012 08:29:02 -0500, Mark Felder wrote: On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi bon...@mail.r-bonomi.com wrote: Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- you are

Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
As the subject says, this is probably a newbie question (I am new to FreeBSD but quite experienced at Linux). FreeBSD9 on x86_64. Cron is running: $ ps -ax|grep cron 1513 ?? Is 0:00.01 /usr/sbin/cron -s 2283 0 S+ 0:00.00 grep cron $ I have a syntactically valid crontab: $

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Michael Sierchio
On Mon, Jun 11, 2012 at 7:04 PM, Walter Hurry walterhu...@gmail.com wrote: As the subject says, this is probably a newbie question (I am new to FreeBSD but quite experienced at Linux). FreeBSD9 on x86_64. Cron is running: $ ps -ax|grep cron  1513  ??  Is     0:00.01 /usr/sbin/cron -s  

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote: Have you installed bash? It's not in the system base. What's in your shell scripts? Thanks for the quick response. $ pkg_info|grep bash bash-4.2.28 The GNU Project's Bourne Again SHell $ which bash /bin/bash $ $ less

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Michael Sierchio
On Mon, Jun 11, 2012 at 7:25 PM, Walter Hurry walterhu...@gmail.com wrote: cat /etc/shells ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 21:21:12 -0500, Adam Vande More wrote: You really have bash in /bin ? Are your scripts executable? What does /var/log/cron say? $ file /bin/bash /bin/bash: symbolic link to `/usr/local/bin/bash' $ sudo tail -50 /var/log/cron (result snipped at 02:22:00 for brevity) Jun

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 19:36:28 -0700, Michael Sierchio wrote: cat /etc/shells $ cat /etc/shells # $FreeBSD: release/9.0.0/etc/shells 59717 2000-04-27 21:58:46Z ache $ # # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells.

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Chris
On 6/11/2012 9:25 PM, Walter Hurry wrote: On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote: Have you installed bash? It's not in the system base. What's in your shell scripts? Thanks for the quick response. $ pkg_info|grep bash bash-4.2.28 The GNU Project's Bourne

Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Robert Bonomi
Walter Hurry walterhu...@gmail.com wrote: As the subject says, this is probably a newbie question (I am new to FreeBSD but quite experienced at Linux). FreeBSD9 on x86_64. Cron is running: $ ps -ax|grep cron 1513 ?? Is 0:00.01 /usr/sbin/cron -s 2283 0 S+ 0:00.00 grep

Re: Limiting resources in cron jobs

2009-05-22 Thread Dan
exec the script with softlimit from daemontools (very easy to use), or exec with ulimit in the shell. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to

Re: Limiting resources in cron jobs

2009-05-20 Thread Mel Flynn
On Saturday 16 May 2009 19:27:22 Kirk Strauser wrote: www:\ :cputime=300:\ :tc=default: I've run cap_mkdb /etc/login.conf to make that live. Then, I used vipw to change www's class: www:*:80:80:www:0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin However, I

Re: Limiting resources in cron jobs

2009-05-20 Thread Kirk Strauser
On May 20, 2009, at 7:00 AM, Mel Flynn wrote: Check with top what the CPU time is, it's not the same as the wall clock. Give me *some* credit. :-) -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list

Re: Limiting resources in cron jobs

2009-05-20 Thread Mel Flynn
On Wednesday 20 May 2009 16:18:28 Kirk Strauser wrote: On May 20, 2009, at 7:00 AM, Mel Flynn wrote: Check with top what the CPU time is, it's not the same as the wall clock. Give me *some* credit. :-) Sorry, haven't you heard? Financial crisis ;) Are you sure cron respects login.conf? I

Limiting resources in cron jobs

2009-05-16 Thread Kirk Strauser
I have a jail where the www user runs hourly cron jobs. On rare occasion, these jobs get stuck in a seemingly infinite CPU loop - a Python script calls Ghostscript and that child process never returns - and I have to manually kill them. I'd like to use login.conf to set resource limits

Re: Running cron jobs as nobody

2008-10-07 Thread DAve
Mel wrote: On Thursday 02 October 2008 17:11:52 DAve wrote: Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because

Re: Running cron jobs as nobody

2008-10-05 Thread Mel
On Thursday 02 October 2008 17:11:52 DAve wrote: Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script

Re: Running cron jobs as nobody

2008-10-03 Thread Derek Ragona
At 10:11 AM 10/2/2008, DAve wrote: Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script uses su to

Running cron jobs as nobody

2008-10-02 Thread DAve
Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script uses su to become nobody. echo

Re: Running cron jobs as nobody

2008-10-02 Thread Bill Campbell
You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E.

Re: Running cron jobs as nobody

2008-10-02 Thread DAve
Bill Campbell wrote: You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill I am being told the developer tried a user crontab without success. I've not suggested they try su

cron jobs not done during sleep

2007-09-17 Thread Steve Franks
Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next time the system is successfully operational, will it? It's not

Re: cron jobs not done during sleep

2007-09-17 Thread Bill Moran
In response to Steve Franks [EMAIL PROTECTED]: Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next time the system

Re: cron jobs not done during sleep

2007-09-17 Thread David Kelly
On Mon, Sep 17, 2007 at 08:22:45AM -0700, Steve Franks wrote: Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next

Re: cron jobs not done during sleep

2007-09-17 Thread RW
On Mon, 17 Sep 2007 08:22:45 -0700 Steve Franks [EMAIL PROTECTED] wrote: Is there a tool or setting to implement this functionality? I want something to happen weekly, I don't care when. One way is to install a crontab replacement like fcron, but the easiest way to handle this is to install

Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Oliver Peter
On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister wrote: On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote: On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote: ... Where can I change the address [EMAIL PROTECTED] to [EMAIL PROTECTED] ? Look in the

RE: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Ian Lord
-Original Message- From: Oliver Peter [mailto:[EMAIL PROTECTED] Sent: 16 mai 2007 03:18 To: Jerry McAllister Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org Subject: Re: Newbie Question: Mail from from cron jobs... On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister

Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Schiz0
On 5/16/07, Ian Lord [EMAIL PROTECTED] wrote: -Original Message- From: Oliver Peter [mailto:[EMAIL PROTECTED] Sent: 16 mai 2007 03:18 To: Jerry McAllister Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org Subject: Re: Newbie Question: Mail from from cron jobs... On Tue, May 15

Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Giorgos Keramidas
On 2007-05-16 03:21, Ian Lord [EMAIL PROTECTED] wrote: -Original Message- From: Oliver Peter [mailto:[EMAIL PROTECTED] Sent: 16 mai 2007 03:18 To: Jerry McAllister Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org Subject: Re: Newbie Question: Mail from from cron jobs

RE: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Ian Lord
Peter'; 'Jerry McAllister'; freebsd-questions@freebsd.org Subject: Re: Newbie Question: Mail from from cron jobs... On 2007-05-16 03:21, Ian Lord [EMAIL PROTECTED] wrote: -Original Message- From: Oliver Peter [mailto:[EMAIL PROTECTED] Sent: 16 mai 2007 03:18 To: Jerry McAllister Cc

Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Ian Lord
Hi, Everyday, cron is sending me status reports of jobs it ran. In my /etc/mail/aliases I configured root: [EMAIL PROTECTED] and it works fine. The problem, is that the mail is coming from [EMAIL PROTECTED] We have a spamfirewall and it rejects the mail saying

Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Oliver Peter
On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote: ... Where can I change the address [EMAIL PROTECTED] to [EMAIL PROTECTED] ? Did you set up your hostname correctly in /etc/rc.conf ? Furthermore you need to tell your MTA how your hostname is called. -- Oliver PETER, email: [EMAIL

Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Jerry McAllister
On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote: On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote: ... Where can I change the address [EMAIL PROTECTED] to [EMAIL PROTECTED] ? Look in the file /etc/mail/aliases You can alias root to go to your favorite address.

Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Norberto Meijome
On Tue, 15 May 2007 12:26:36 -0400 Ian Lord [EMAIL PROTECTED] wrote: [] The problem, is that the mail is coming from [EMAIL PROTECTED] We have a spamfirewall and it rejects the mail saying localhost.mydomain.com is invalid. Where can I change the address [EMAIL PROTECTED] to

(also 5.4) re: Abort Trap for cron-jobs in 5.3

2005-08-10 Thread Chad Leigh -- Shire . Net LLC
a few months ago the following appeared in -stable In the last episode (Mar 15), Niklas Saers said: On Tue, 15 Mar 2005, Niklas Saers wrote: I've got four servers that all have the same problem: when jobs get started from Cron, they die after some time with an Abort trap. Jobs that are

Strange Behavior in periodic daily cron jobs.

2004-08-05 Thread Paul R Culmo
Greetings. I'm seeing some weird output from the daily periodic cron jobs that run at night. It's related to procmail but I can't figure out where in the scripts that it's causing it. Anyone seen this before? running on 5.2.1 p-9. Ports and source update code nightly using cvsup. Snip

Creating periodic cron jobs

2004-05-13 Thread Robert Fitzpatrick
getting these mail messages below, it seems I have created, for example, cron jobs as 'root /usr/libexec/atrun' in addition to the usual '/usr/libexec/atrun'. It has done this for daily, weekly, etc. as well. Can someone tell me what I did wrong? Return-Path: [EMAIL PROTECTED] Received: from

Re: Creating periodic cron jobs

2004-05-13 Thread platanthera
there. After I ran 'crontab -u root /etc/crontab', have a look at http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS now I am getting these mail messages below, it seems I have created, for example, cron jobs as 'root /usr/libexec/atrun' in addition

Re: Creating periodic cron jobs

2004-05-13 Thread Robert Fitzpatrick
On Thu, 2004-05-13 at 12:05, platanthera wrote: On Thursday 13 May 2004 17:51, Robert Fitzpatrick wrote: I am trying to create a quarter-daily cron job on my FreeBSD 5.2.1 as follows in /etc/crontab: 05 0,6,12,18 * * * root periodic quarter-daily I created the

cron jobs

2003-12-25 Thread shawn
I installed MRTG and got it working. Noticed that it seemed it was not polling on its own. So I changed the cron job to make it poll more often and in fact its not polling on its own. Also noticed that I stopped receiving my Dailey, reports via email.. I'm also trouble shooting a send mail

Re: cron jobs

2003-12-25 Thread Jonathan T. Sage
shawn wrote: I installed MRTG and got it working. Noticed that it seemed it was not polling on its own. So I changed the cron job to make it poll more often and in fact its not polling on its own. Also noticed that I stopped receiving my Dailey, reports via email.. I'm also trouble shooting a

Re: cron jobs

2003-12-25 Thread shawn
adjkerntz -a */1 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg - Original Message - From: Jonathan T. Sage [EMAIL PROTECTED] To: shawn [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 25, 2003 10:23 AM Subject: Re: cron jobs

Re: cron jobs

2003-12-25 Thread Jonathan T. Sage
shawn wrote: *snip* 1,310-5 * * * rootadjkerntz -a */1 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg Part of your problem is going to be right here. comparing two lines, you will notice the the 6th field is the user to