Re: Probably working too hard for this cron question

2011-06-14 Thread Warren Block
On Mon, 13 Jun 2011, Kurt Buff wrote: Per the handbook, I added SHELL=/bin/sh to crontab, and I also added #!/bin/sh as the first line in the script Should not need both. The first changes a default, which is bad when you switch to another system where that hasn't been changed.

Re: Probably working too hard for this cron question

2011-06-13 Thread Kurt Buff
On Mon, Jun 13, 2011 at 15:02, Polytropon wrote: > On Mon, 13 Jun 2011 14:44:29 -0700, Kurt Buff wrote: >> Per the handbook, I added >> >>      SHELL=/bin/sh >> >> to crontab, and I also added >> >>      #!/bin/sh >> >> as the first line in the script >> >> But, while a file is being created, it'

Re: Probably working too hard for this cron question

2011-06-13 Thread Daniel Feenberg
o: Kurt Buff Cc: FreeBSD Questions Subject: Re: Probably working too hard for this cron question On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff wrote: All, I've googled a bunch, read some freebsd.org docs, and just can't figure this out. I have a script that should read the current date in

Re: Probably working too hard for this cron question

2011-06-13 Thread Polytropon
On Mon, 13 Jun 2011 14:44:29 -0700, Kurt Buff wrote: > Per the handbook, I added > > SHELL=/bin/sh > > to crontab, and I also added > > #!/bin/sh > > as the first line in the script > > But, while a file is being created, it's just > > /root/-external1.txt > > not > > /

Re: Probably working too hard for this cron question

2011-06-13 Thread Kurt Buff
Questions > Subject: Re: Probably working too hard for this cron question > > On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff wrote: >> All, >> >> I've googled a bunch, read some freebsd.org docs, and just can't >> figure this out. >> >> I have a sc

Re: Probably working too hard for this cron question

2011-06-13 Thread Kurt Buff
On Mon, Jun 13, 2011 at 13:25, pete wright wrote: > On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff wrote: >> All, >> >> I've googled a bunch, read some freebsd.org docs, and just can't >> figure this out. >> >> I have a script that should read the current date into a variable, >> append the time/dat

Re: Probably working too hard for this cron question

2011-06-13 Thread pete wright
On Mon, Jun 13, 2011 at 2:14 PM, Gary Gatten wrote: > Yeah Pete, kinda need that huh.  Kurt, If that turns out to be the only > issue, don't feel bad - I've forgotten it myself several times!  I'm sure > many others have as well! > as someone who was fixing some brain dead cron entries he setup

RE: Probably working too hard for this cron question

2011-06-13 Thread Gary Gatten
freebsd.org] On Behalf Of pete wright Sent: Monday, June 13, 2011 3:25 PM To: Kurt Buff Cc: FreeBSD Questions Subject: Re: Probably working too hard for this cron question On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff wrote: > All, > > I've googled a bunch, read some freebsd.org docs,

Re: Probably working too hard for this cron question

2011-06-13 Thread pete wright
On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff wrote: > All, > > I've googled a bunch, read some freebsd.org docs, and just can't > figure this out. > > I have a script that should read the current date into a variable, > append the time/date stamp at the beginning of the file created with > the date

Probably working too hard for this cron question

2011-06-13 Thread Kurt Buff
All, I've googled a bunch, read some freebsd.org docs, and just can't figure this out. I have a script that should read the current date into a variable, append the time/date stamp at the beginning of the file created with the date in the variable, do a bunch of cURL stuff, then append a time/dat

Re: Cron Question

2008-09-06 Thread ElihuJ
Can anyone help me with this? Thank you again. -- View this message in context: http://www.nabble.com/Cron-Question-tp19272656p19343758.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing

Re: Cron Question

2008-09-03 Thread ElihuJ
Thank you for the help. I changed the script to run Weekly instead of Daily. If it was starting while it was still running, this should fix it. I'll post my progress, and thank you again. -- View this message in context: http://www.nabble.com/Cron-Question-tp19272656p19287970.html Sent fro

Re: Cron Question

2008-09-03 Thread Derek Ragona
of the same cron job. Is there something I can do to limit this from happening? When it does, it drains my CPU and some of my other processes are non responsive. Any help would be appreciated. Thank you. -- View this message in context: http://www.nabble.com/Cron-Question-tp19272656p19272656.html

Re: Cron Question

2008-09-02 Thread RW
On Tue, 2 Sep 2008 11:40:37 -0500 Dan Nelson <[EMAIL PROTECTED]> wrote: > I use the lockfile command ( from the procmail port ) to ensure that > recurring cron jobs don't overlap if one run takes too long. For > example, to run mrtg on a 1-minute cycle but prevent multiple mrtgs > from running if

Re: Cron Question

2008-09-02 Thread Dan Nelson
In the last episode (Sep 02), Paul Schmehl said: > --On September 2, 2008 6:03:51 PM +0200 Albert Shih wrote: > > Le 02/09/2008 à 08:45:52-0700, ElihuJ a écrit > >> Hi all. I have a question about cron jobs that seem to be running > >> to long or with multiple copies of itself. For example, I have

Re: Cron Question

2008-09-02 Thread Paul Schmehl
--On September 2, 2008 6:03:51 PM +0200 Albert Shih <[EMAIL PROTECTED]> wrote: Le 02/09/2008 à 08:45:52-0700, ElihuJ a écrit Hi all. I have a question about cron jobs that seem to be running to long or with multiple copies of itself. For example, I have a backup script that I run that seems

Re: Cron Question

2008-09-02 Thread Albert Shih
Le 02/09/2008 à 08:45:52-0700, ElihuJ a écrit > > Hi all. I have a question about cron jobs that seem to be running to long or > with multiple copies of itself. For example, I have a backup script that I > run that seems to make multiple copies of itself. If I view the running > processes I see n

Cron Question

2008-09-02 Thread ElihuJ
something I can do to limit this from happening? When it does, it drains my CPU and some of my other processes are non responsive. Any help would be appreciated. Thank you. -- View this message in context: http://www.nabble.com/Cron-Question-tp19272656p19272656.html Sent from the freebsd-questions

Re: Cron question

2008-04-26 Thread John Almberg
On Apr 25, 2008, at 10:31 AM, John Almberg wrote: ...and invoking this wrapper from cron instead of trying to reset the shell and everything from within cron. You can test things by doing an "su gs -c /bin/sh" from a root login and then trying to run your wrapper, which will giv

Re: Cron question

2008-04-25 Thread John Almberg
...and invoking this wrapper from cron instead of trying to reset the shell and everything from within cron. You can test things by doing an "su gs -c /bin/sh" from a root login and then trying to run your wrapper, which will give you a minimum environment closer to what cron executes un

Re: Cron question

2008-04-24 Thread Matt
On Thu, Apr 24, 2008 at 3:26 PM, John Almberg <[EMAIL PROTECTED]> wrote: > SHELL=/usr/local/bin/bash Did you install bash from ports and does it run OK from outside of cron? > > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/gs/bin > HOME=/home

Re: Cron question

2008-04-24 Thread Wojciech Puchar
0 15 * * * /usr/local/bin/php /home/gs/bin/script.php /home/gs/log/script.log looks right. check mail - cron sends mail if something is wrong ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To

Re: Cron question

2008-04-24 Thread Chuck Swiger
On Apr 24, 2008, at 1:26 PM, John Almberg wrote: The trouble comes when I try to run this script with cron. I have something like this in the gs user crontab: SHELL=/usr/local/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ local/bin:/usr/X11R6/bin:/home/gs/bin H

Cron question

2008-04-24 Thread John Almberg
I have recently switched from Linux to FreeBSD for my web server. Absolutely love it, but am having one difficulty that is driving me bats... I wouldn't think that cron would run differently on BSD than Linux, but it seemingly does. I have a user crontab that runs a PHP script once a day.

Re: cron question

2006-04-06 Thread RW
On Wednesday 05 April 2006 01:32, Kevin Kinsey wrote: > And furthermore, you edited /etc/crontab or something similar > instead of using crontab(1) to edit /var/cron/tabs/root. Nitpicky, > to be sure, but the cause of many a heartache: > > http://www.freebsd.org/doc/en/books/faq/admin.html#ROOT-N

Re: cron question

2006-04-05 Thread Giorgos Keramidas
On 2006-04-05 07:03, Marlon Martin <[EMAIL PROTECTED]> wrote: > i created a simple shell script: > > filename: rn > > #!/bin/sh > rndc dumpdb > > what it does, is just dump the hostname and IP addresses in /var/dump > i set the time in 2 minutes but when i checked the logs, it doesnt work any > ide

Re: cron question

2006-04-04 Thread Kevin Kinsey
Chuck Swiger wrote: Marlon Martin wrote: i created a simple shell script: filename: rn #!/bin/sh rndc dumpdb what it does, is just dump the hostname and IP addresses in /var/dump i set the time in 2 minutes but when i checked the logs, it doesnt work any idea what did i missed here?

Re: cron question

2006-04-04 Thread Chuck Swiger
Marlon Martin wrote: > i created a simple shell script: > > filename: rn > > #!/bin/sh > rndc dumpdb > > what it does, is just dump the hostname and IP addresses in /var/dump > i set the time in 2 minutes but when i checked the logs, it doesnt work any > idea what did i missed here? You forgot

cron question

2006-04-04 Thread Marlon Martin
i created a simple shell script: filename: rn #!/bin/sh rndc dumpdb what it does, is just dump the hostname and IP addresses in /var/dump i set the time in 2 minutes but when i checked the logs, it doesnt work any idea what did i missed here? == SHEL

Re: cron question

2003-08-14 Thread Lowell Gilbert
Jim Pazarena <[EMAIL PROTECTED]> writes: > I am trying to grep for a record from a crob job... > the entry looks like this: > 58 23 * * * grep `date "+%Y-%m-%d "` /log/fylename | mail admin > > cron complains: > Syntax error: EOF in backquote substitution > > could someone enlighten

cron question

2003-08-14 Thread Jim Pazarena
I am trying to grep for a record from a crob job... the entry looks like this: 58 23 * * * grep `date "+%Y-%m-%d "` /log/fylename | mail admin cron complains: Syntax error: EOF in backquote substitution could someone enlighten me please? -- Jim Pazarena Box 550 mai

Re: cron question

2003-03-15 Thread Giorgos Keramidas
On 2003-03-14 16:08, Kenzo <[EMAIL PROTECTED]> wrote: > I'm trying to automatically create a report in cron and E-mailling it to my > E-mail account. > > this is what I have. > > 0 1 0 0 0 root /usr/bin/perl /usr/local/bin/spamstat.pl /var/log/maillog.0 > > /var/log/spam_report | uuencode spam_repo

cron question

2003-03-14 Thread Kenzo
I'm trying to automatically create a report in cron and E-mailling it to my E-mail account. this is what I have. 0 1 0 0 0 root /usr/bin/perl /usr/local/bin/spamstat.pl /var/log/maillog.0 > /var/log/spam_report | uuencode spam_report spam_report | mail -s "spam_daily_report" [EMAIL PROTECTED] wh