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.
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
On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff kurt.b...@gmail.com 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
] 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 kurt.b...@gmail.com wrote:
All,
I've googled a bunch, read some freebsd.org docs, and just can't
On Mon, Jun 13, 2011 at 2:14 PM, Gary Gatten ggat...@waddell.com 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
On Mon, Jun 13, 2011 at 13:25, pete wright nomadlo...@gmail.com wrote:
On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff kurt.b...@gmail.com 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
for this cron question
On Mon, Jun 13, 2011 at 12:52 PM, Kurt Buff kurt.b...@gmail.com 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
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
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
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 from
. 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
Sent from the freebsd-questions
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
--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
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 a
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 one
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 give
...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
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
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
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
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/gs
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:
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
idea what did
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?
==
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 to use
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?
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
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 me please?
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_report
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]
what
30 matches
Mail list logo