-
From: Robert Huff [EMAIL PROTECTED]
To: Hinkie [EMAIL PROTECTED]
Sent: Saturday, September 01, 2007 2:45 PM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
Hello:
from edit.php create / write into new file /usr/bin/pinger.sh
#!/bin/sh
ping -c1
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0 down; ifconfig
em0 up) if my cables static ip gateway can't be pinged but I can't figure it
out. I can't get the syntax that runs in the command window, to then put intot
the crontab
Can anyone help me?
I've tried all
Written by Hinkie on 08/29/07 08:03
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0 down; ifconfig
em0 up) if my cables static ip gateway can't be pinged but I can't figure it
out. I can't get the syntax that runs in the command window, to then put intot
the crontab
On Aug 29, 2007, at 8:03 AMAug 29, 2007, Hinkie wrote:
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0
down; ifconfig em0 up) if my cables static ip gateway can't be
pinged but I can't figure it out. I can't get the syntax that runs
in the command window, to then put
Here's what I'd use:
ping -c 1 a.b.c.d; TESTV=$?; if [ $TESTV != 0 ]; then `ifconfig em0 down`;
I'd suggest something more like:
ping -c 1 $host
[ $? -eq 0 ] ifconfig em0 down ifconfig em0 up
or
ping -c 1 $host
if [ $? -eq 0 ]; then
ifconfig em0 down ifconfig em0 up
fi
--
On 2007-08-30 01:03, Hinkie [EMAIL PROTECTED] wrote:
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0 down;
ifconfig em0 up) if my cables static ip gateway can't be pinged but I
can't figure it out. I can't get the syntax that runs in the command
window, to then put intot
fragment from my test program (used for other thing but doesn't matter)
/sbin/ping -i 0.5 -s 1450 -c 3 tested_host /dev/null 2/dev/null
if [ $? != 0 ];then
perform_action_if_doesnt_ping
fi
___
freebsd-questions@freebsd.org mailing list
On 2007-08-29 18:51, Wojciech Puchar [EMAIL PROTECTED] wrote:
fragment from my test program (used for other thing but doesn't matter)
/sbin/ping -i 0.5 -s 1450 -c 3 tested_host /dev/null 2/dev/null
if [ $? != 0 ];then
perform_action_if_doesnt_ping
fi
I'm not sure if '!=' is a 'portable'
me further?
With thanks
David Hingston
- Original Message -
From: Eric Crist [EMAIL PROTECTED]
To: Hinkie [EMAIL PROTECTED]
Cc: freebsd-questions@FreeBSD.ORG
Sent: Thursday, August 30, 2007 2:17 AM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
On Aug 29, 2007
On Aug 29, 2007, at 1:54 PMAug 29, 2007, Giorgos Keramidas wrote:
On 2007-08-29 18:51, Wojciech Puchar
[EMAIL PROTECTED] wrote:
fragment from my test program (used for other thing but doesn't
matter)
/sbin/ping -i 0.5 -s 1450 -c 3 tested_host /dev/null 2/dev/null
if [ $? != 0 ];then
.
As you can tell I am learning this syntax!
Can you help me further?
With thanks
David Hingston
- Original Message -
From: Eric Crist [EMAIL PROTECTED]
To: Hinkie [EMAIL PROTECTED]
Cc: freebsd-questions@FreeBSD.ORG
Sent: Thursday, August 30, 2007 2:17 AM
Subject: Re: FreeBSD Cron Job to run
it either?
Kind regards
David Hingston
- Original Message -
From: Eric Crist [EMAIL PROTECTED]
To: Hinkie [EMAIL PROTECTED]
Cc: freebsd-questions@FreeBSD.ORG
Sent: Thursday, August 30, 2007 7:30 AM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
David,
The script I
On 2007-08-29 14:18, Eric Crist [EMAIL PROTECTED] wrote:
On Aug 29, 2007, at 1:54 PMAug 29, 2007, Giorgos Keramidas wrote:
On 2007-08-29 18:51, Wojciech Puchar [EMAIL PROTECTED]
wrote:
fragment from my test program (used for other thing but doesn't matter)
/sbin/ping -i 0.5 -s 1450 -c 3
then crontab won't run it either?
Kind regards
David Hingston
- Original Message -
From: Eric Crist [EMAIL PROTECTED]
To: Hinkie [EMAIL PROTECTED]
Cc: freebsd-questions@FreeBSD.ORG
Sent: Thursday, August 30, 2007 7:30 AM
Subject: Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig
em0 up
Hi
I run a daily portsnap from cron, using the following line:
/usr/sbin/portsnap cron update /dev/null 21 ;
/usr/local/sbin/portversion -vL=
Until recently, I only received a mail when there were ports to upgrade.
However, now I get this every day, even when there are no new ports
Tobias Roth wrote:
Hi
I run a daily portsnap from cron, using the following line:
/usr/sbin/portsnap cron update /dev/null 21 ;
/usr/local/sbin/portversion -vL=
Until recently, I only received a mail when there were ports to upgrade.
However, now I get this every day, even when
Garrett Cooper wrote:
That's not going to change until portversion changes. The problem is
most likely that portsnap touches the file and portversion finds it
necessary to update the portsdb. Processing the text from portversion
will yield the info you want.
Cheers,
-Garrett
Ohh, now at
it doesn't use the INDEX.db file. Maybe you could use that to avoid the
messages? :) (The speed won't matter coz its run as a cron job anyways!)
Do 'pkg_version -l ' to get a list of ports that need updating .
Thanks,
Rakhesh
___
freebsd-questions
messages formatted
= exactly how you want them.
Well, I started looking into how much effort would it be to translate the
strings returned by libmagic(3)'s routines into Content-Type.
If it is easy enough, I could hack cron to analyze the job's output using
magic_buffer(3) and set Content
On четвер 19 липень 2007, Tom Evans wrote:
= Or you could patch cron to use libmagic
Done:
http://aldan.algebra.com/~mi/cron-mime.diff
It even works now...
= and have cron scripts that will only work on one box.
And send-pr the diffs to FreeBSD :-)
-mi
On Thu, 2007-07-19 at 07:55 -0400, Mikhail Teterin wrote:
On четвер 19 липень 2007, Tom Evans wrote:
= Or you could patch cron to use libmagic
Done:
http://aldan.algebra.com/~mi/cron-mime.diff
It even works now...
= and have cron scripts that will only work on one box
On четвер 19 липень 2007, Tom Evans wrote:
= Teaching cron about file types/mime types is an awful idea
Why? My particular cron-job generates HTML. Somebody else's might generate a
JPG image -- from their telescope every morning. There is no reason for these
jobs to have to do the e-mailing
;)..).
I don't think the RTC battery being dead would affect sleep times. 5
hours in 1970 (or whenever) are the the same length as 5 hours now.
If you want to anything more complex than can be achieved with cron,
it's probably better to install one of the cron replacement ports,
such as fcron. I
, 5, 10, 15 and 20. Between
hour 20 one day and hour 0 the next day there is only 4 hours, not
the every 5 hours requested.
Just to confirm that I launched a cron job yesterday:
23 */5 * * * /home/java/on/crontest
It ran at 15:23, 20:23 and today at 0:23 and 5:23 and so on:
Date: Wed, 18 Jul
five
hours. So it will run every day at hour 0, 5, 10, 15 and 20. Between
hour 20 one day and hour 0 the next day there is only 4 hours, not
the every 5 hours requested.
Just to confirm that I launched a cron job yesterday:
23 */5 * * * /home/java/on/crontest
It ran at 15:23, 20:23
of 5, not every five
hours. So it will run every day at hour 0, 5, 10, 15 and 20. Between
hour 20 one day and hour 0 the next day there is only 4 hours, not
the every 5 hours requested.
That's what I meant _..
Just to confirm that I launched a cron job yesterday:
23 */5 * * * /home/java
hours that is a multiple of 5, not every five
hours. So it will run every day at hour 0, 5, 10, 15 and 20. Between
hour 20 one day and hour 0 the next day there is only 4 hours, not
the every 5 hours requested.
That's what I meant _..
Just to confirm that I launched a cron job yesterday:
23
On Sat, Jul 14, 2007 at 06:21:16PM -0400, Mikhail Teterin typed:
= To accomplish this I have my cron job run a script like this
Sorry, I missed the most important part. Your script just uses /usr/bin/mail,
the same way cron does. You are not adding anything, not already present in
cron
At 03:03 PM 7/14/2007, Mikhail Teterin wrote:
Hello!
I have a script launched from cron every morning, that gets certain data over
the Internet from a remote computer, compares the new data with that from the
previous day, and outputs the difference (if any).
I'm relying on the fact, that cron
want them.
Well, I started looking into how much effort would it be to translate the
strings returned by libmagic(3)'s routines into Content-Type.
If it is easy enough, I could hack cron to analyze the job's output using
magic_buffer(3) and set Content-Type if anything recognizable
not received any e-mails from the cron modified as per the
linked patch yet, but if anyone cares to review it, please, do so. It
compiles :-)
http://aldan.algebra.com/~mi/cron-mime.diff
It increases the application's buffering of the job's output from 1 character
to BUFSIZ and, if requested
makes it very non-portable. This would make your cron changes
needed on any system and version you want to implement this behavior.
Since you posted your script, I'll comment on it. First of all, you don't
need
ksh for anything you are doing in this script. FreeBSD's /bin/sh is enough
(we
on monday, then 1, 6,
11, 16 and 21 on Tuesday and etc, but as the number of hours per week
is not a multiple of 5, next week Monday would be at 2, 7, 12, 17 and
22, and that would not work with cron.
If you absolutely need it to be 5 hours (6 hours would work nicely
with cron) have your job restart
, 10, 15 and 20 on monday, then 1, 6,
11, 16 and 21 on Tuesday and etc, but as the number of hours per week
is not a multiple of 5, next week Monday would be at 2, 7, 12, 17 and
22, and that would not work with cron.
If you absolutely need it to be 5 hours (6 hours would work nicely
with cron) have
Hello!
I have a script launched from cron every morning, that gets certain data over
the Internet from a remote computer, compares the new data with that from the
previous day, and outputs the difference (if any).
I'm relying on the fact, that cron e-mails me the output of each job.
However
Derek Ragona wrote:
= = I'd rather avoid poluting my script with e-mail sending code...
= You need to change your script to send the email itself.
Thank you, Derek, but -- as I stated already -- I wanted to see, if this can
be avoided...
Since you posted your script, I'll comment on it. First
= To accomplish this I have my cron job run a script like this
Sorry, I missed the most important part. Your script just uses /usr/bin/mail,
the same way cron does. You are not adding anything, not already present in
cron -- your script should simply produce output to stdout. Cron will mail
this will make the quoted text part of the _body_ of the
message.
= Maybe, cron should apply file(1)-like logic to the e-mailed content?
= No, cron doesn't need any knowledge of how to render email.
I was not advocating adding such knowledge. My suggestion was to make cron add
proper Content-Type
Mikhail Teterin wrote:
Hello!
I have a script launched from cron every morning, that gets certain data over
the Internet from a remote computer, compares the new data with that from the
previous day, and outputs the difference (if any).
I'm relying on the fact, that cron e-mails me
Mikhail Teterin wrote:
= Alter your script to add the 'Content-Type: text/html' header.
No, I'm afraid, doing this will make the quoted text part of the _body_ of
the
message.
Ack. Yes, you're quite right. Sorry for the bum advice.
= Maybe, cron should apply file(1)-like logic to the e
looking into how much effort would it be to translate the
strings returned by libmagic(3)'s routines into Content-Type.
If it is easy enough, I could hack cron to analyze the job's output using
magic_buffer(3) and set Content-Type if anything recognizable is detected...
The translation
Hello,
I want to run an updater script, every 5 hours and x minutes. I thought
to use:
minute 5 * * * root path/to/scriptname
but that looks like it only works once a day, i want it to go every 5 hours
not justa at 5 in the monrning.
Thanks.
Dave.
On Fri, 13 Jul 2007 at 12:50 -0400, [EMAIL PROTECTED] confabulated:
Hello,
I want to run an updater script, every 5 hours and x minutes. I thought to
use:
minute 5 * * * root path/to/scriptname
crontab(5):
...
Steps are also permitted after an asterisk, so if you want to say
On Friday 13 July 2007, Duane Hill wrote:
On Fri, 13 Jul 2007 at 12:50 -0400, [EMAIL PROTECTED]
confabulated:
Hello,
I want to run an updater script, every 5 hours and x minutes. I
thought to use:
minute 5 * * * root path/to/scriptname
crontab(5):
...
Steps are also
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
-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
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
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
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
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
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
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.
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
Can anyone think of something that can stop cron working for a particular user?
I just noticed on one of our 6.1 machines the crontab for a particular user
wasn't run properly since dec 21. There were hourly and daily jobs, but neither
seemed to be running.
Looked in var/cron and see no deny
the hour the hourly job came back.
Is it the HOME variable or the act of rewriting? User did have home
defined in /etc/passwd.
I suspect that $HOME isn't being defined as one might expect-- cron provides a
very minimal shell environment for scripts it runs.
--
-Chuck
and at 41 past the hour the hourly job came back.
Is it the HOME variable or the act of rewriting? User did have home
defined in /etc/passwd.
I suspect that $HOME isn't being defined as one might expect-- cron
provides a very minimal shell environment for scripts it runs.
except that I have
Environment variables are set first by the users shell which then is used
to exec cron jobs. Basically, always take nothing in the environment for
granted.
-Derek
At 10:19 AM 2/26/2007, Robin Becker wrote:
Can anyone think of something that can stop cron working for a particular
Hi,
I wrote a perl script to get a news show I like. When I run it, it deletes
yesterday's copy of the show, and downloads the new copy. The script works
fine. I run the script as myself (charlie), charlie owns it, and it's
chmod'd 0755. Works fine.
I can't get cron to run it, though
get cron to run it, though. Here's the cron process running on my
machine:
[EMAIL PROTECTED] ps auxwww | grep cron
root 413 0.0 0.1 1364 892 ?? Ss5Jan07
0:06.57/usr/sbin/cron -s
And here's charlie's crontab, to run at 7:17 mon - fri
17 7 * * 1-5 /media/democracy_now
chmod'd 0755. Works fine.
I can't get cron to run it, though. Here's the cron process running on my
machine:
[EMAIL PROTECTED] ps auxwww | grep cron
root 413 0.0 0.1 1364 892 ?? Ss5Jan07 0:06.57/usr/sbin/cron
-s
And here's charlie's crontab, to run at 7:17 mon - fri
Always use full pathnames to commands in cron scripts. Change the lines to
include the full paths for chown and chmod.
-Derek
At 09:31 PM 1/16/2007, Don O'Neil wrote:
Anybody have any clues why a shell script run from root's CRON would act
differently then when run directly from
Anybody have any clues why a shell script run from root's CRON would act
differently then when run directly from the command line?
Specifically, I have a script that looks for files on a NFS mount point and
copies them across and changes the ownership/perms.
Here's the gist of the script
On Tue, Jan 16, 2007, Don O'Neil wrote:
Anybody have any clues why a shell script run from root's CRON would act
differently then when run directly from the command line?
Most often this is because the environment in the cron job is
different, either missing variables or having variables
to things
like power failures. It has always started up without problems. On the
12/27 I shut down the server so I could physically clean the server (was
getting kinda gross with dust balls and stuff). It started up no problems
but rather curiously the cron service does not seem
. It has always started up without problems. On
the 12/27 I shut down the server so I could physically clean the server (was
getting kinda gross with dust balls and stuff). It started up no problems
but rather curiously the cron service does not seem to be processing any
jobs now.
I am not sure
Check the clock. Often older systems have dead batteries so the clock is
so far out of whack cron jobs don't run.
-Derek
At 08:18 AM 12/28/2006, steve wrote:
It has been a long time since I've had to post for help, so forgive me if
this question is misplaced or stupid.
I have
Hello,
Make sure to use full path in the cron command file, like so:
/usr/sbin/ntpdate time.server.anywhere
Derek Ragona skrev:
Check the clock. Often older systems have dead batteries so the clock
is so far out of whack cron jobs don't run.
-Derek
At 08:18 AM 12/28/2006, steve
You might want to use ntpd to sync the clock before cron starts if
this turns out to be your problem:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-
ntp.html
Once you have ntpd working, just put ntpd on the require line in the
cron startup file, /etc/rc.d/cron
Hi!!
I have some problems with running perl script from cron.
My script works with huge log files and it's size grows up to 300-1500Mb. It's
necessity and can't be done in other ways than collecting data into hashes.
When memory usage reaches 256Mb, error happens:
Out of memory during
After building a new FreeBSD5.4 system, I have done
something bad to it.
When cron runs jobs in /etc/crontab as operator, it seems
as if that 6TH field in /etc/crontab is being interpreted as a
command rather than the user ID it is supposed to run under. I
keep getting messages
On Tuesday 31 October 2006 12:08, Martin McCormick wrote:
After building a new FreeBSD5.4 system, I have done
something bad to it.
When cron runs jobs in /etc/crontab as operator, it seems
as if that 6TH field in /etc/crontab is being interpreted as a
command rather than the user
In the last episode (Oct 31), Martin McCormick said:
After building a new FreeBSD5.4 system, I have done
something bad to it.
When cron runs jobs in /etc/crontab as operator, it seems
as if that 6TH field in /etc/crontab is being interpreted as a
command rather than the user ID
Dan Nelson writes:
The operator user has no access to /etc/crontab. You have probably
copied entries from the system crontab (i.e. /etc/crontab) into a
user's crontab. The system crontab has the extra user column, where
user crontabs don't (since they always run as the user).
On Wed, Oct 04, 2006 at 06:23:39AM -0400, stan wrote:
On Tue, Oct 03, 2006 at 11:22:29PM -0500, Philip Hallstrom wrote:
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script
On Tue, Oct 03, 2006 at 11:22:29PM -0500, Philip Hallstrom wrote:
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script runs from teh command line. Now I've seen plenty of
strange
On Wednesday 04 October 2006 01:05, stan wrote:
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script runs from teh command line. Now I've seen plenty of
strange beahviour because
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script runs from teh command line. Now I've seen plenty of
strange beahviour because of the limited environment cron tasks
get, but a basic
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script runs from teh command line. Now I've seen plenty of
strange beahviour because of the limited environment cron tasks
get
On 10/3/06, stan [EMAIL PROTECTED] wrote:
I'm having a hard time getting cron to run a task. I've run crontab -e
(as root), and added the following line:
12 * * * * /usr/local/bin/mirror_ubuntu
This script runs from teh command line. Now I've seen plenty of
strange beahviour because
a
rule-setting script called in rc.conf.local but the message that
cron generates every eleven minutes shows that something is very
unhappy.
For now, I simply commented out the save-entropy run for
a bit of peace and quiet, but the entropy is now not being
updated which is not a good thing
Martin McCormick writes:
I must have dome something wrong setting up a FreeBSD5.4
system, but I haven't a clue as to what.
This is still Martin McCormick. I haven't found exactly
what I did yet, but I remembered that I do have a second 5.4 box
and it appears to be fine so I can
running and it got all the rules I put in to it via a
rule-setting script called in rc.conf.local but the message that
cron generates every eleven minutes shows that something is very
unhappy.
For now, I simply commented out the save-entropy run for
a bit of peace and quiet, but the entropy
Hi All,
Thanks for all of your help. Creating /etc/periodic.conf with the
appropriate data did the trick. I appreciate it.
Lisa Casey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To
Hi,
This ought to be a fairly simple question, but I've googled and can't really
find the answer.
I'ld like to have the reports from the system cron jobs (daily run output,
security run output, weekly run output and monthly run output) sent to an
e-mail address other than root, but I want
mail
also.. using 21 doesn't seem appropriate, afaik you would use that in
crontab if you don't want to get emails via cron
--
grtjs,
albi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
Lisa Casey wrote:
# Perform daily/weekly/monthly maintenance.
1 3 * * * rootperiodic daily 21 |
sendmail [EMAIL PROTECTED]
15 4 * * 6 rootperiodic weekly 21 |
sendmail [EMAIL PROTECTED]
30 5 1 * *
In the last episode (Aug 23), Lisa Casey said:
This ought to be a fairly simple question, but I've googled and can't
really find the answer.
I'ld like to have the reports from the system cron jobs (daily run
output, security run output, weekly run output and monthly run
output) sent to an e
In response to Lisa Casey [EMAIL PROTECTED]:
to this:
# Perform daily/weekly/monthly maintenance.
1 3 * * * rootperiodic daily 21 |
sendmail [EMAIL PROTECTED]
This is a bad idea, mainly because (as you already know) it doesn't work :)
If you want to use
30 5 1 * * rootperiodic monthly 21
| sendmail [EMAIL PROTECTED]
but all I get is a blank email sent to [EMAIL PROTECTED]
[...]
also.. using 21 doesn't seem appropriate, afaik you would use
that in
crontab if you don't want to get emails via cron
You would
generated by the jobs in that file to be
sent
to the provided address.
Is that true? MAILTO should change the destination of the output of
cron jobs, but periodic handles its own output
___
freebsd-questions@freebsd.org mailing list
http
of the crontab:
[EMAIL PROTECTED]
Which will cause all mail generated by the jobs in that file to be
sent
to the provided address.
Is that true? MAILTO should change the destination of the output of
cron jobs, but periodic handles its own output
You're correct. That's my mistake
Hello,
I have a script that is started through cron. This script contains
several steps, each step writes information to stdout, in case of errors
to stderr.
The total script runs for about 6 hours and then the the combined output
of all steps is mailed to root.
However, is there a way
In the last episode (Jul 26), Nicky said:
I have a script that is started through cron. This script contains
several steps, each step writes information to stdout, in case of
errors to stderr. The total script runs for about 6 hours and then
the the combined output of all steps is mailed
I have a fairly lengthy routine which runs each
Sunday morning in a cronjob. For many months
now it has never completed, and I have to manually
run it from the CLI. (which runs fine). The cronjob
runs as root.
It isn't failing because of a PATH problem,
(it's just /usr/local/bin/analog running
/bin/analog running in dozens
of repetitions)
/usr/bin/limits shows most limits as infinity
I don't get any email error message .. nothing! it just quits!
any ideas?
Add echo statements to the job, or change it to being a shell script that cron
calls, which then runs all of your analog
Is your shell different from the account running the cron job? Is there
any other jobs that might kill this cron job?
Add echo statements to your script and save a log file. Be sure to
redirect stderr as well as stdout to the log file.
-Derek
At 10:34 AM 6/13/2006, Jim Pazarena
How can I simulate a cron job from the shell? There must be something
different about the way cron is executing this command...
Counld be different environment variables set, different working
directory...
Any diagnostic when it hangs?
Olivier
On 6/7/06, Olivier Nicole [EMAIL PROTECTED] wrote:
How can I simulate a cron job from the shell? There must be something
different about the way cron is executing this command...
Counld be different environment variables set, different working
directory...
That's what I'm trying to find out
Counld be different environment variables set, different working
directory...
That's what I'm trying to find out. The cron man pages are ... empty
on the subject.
Remove every and any environment variable and try to run from / or
from /root or from /tmp
OK that's trial and error approach
* Atom Powers [EMAIL PROTECTED] [2006-06-07 15:48:35 -0700]:
I have a cronjob ( cfexecd -F ) that often hangs; but no matter how I
run it from the shell ( sh -c cfexecd -F ) it never hangs.
How can I simulate a cron job from the shell?
Whenever you have a problem like this (ie. foo works
201 - 300 of 602 matches
Mail list logo