Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-31 Thread Hinkie
- 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

FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Hinkie
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Reid Linnemann
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Eric Crist
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Mak Kolybabi
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 --

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Giorgos Keramidas
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Wojciech Puchar
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Giorgos Keramidas
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'

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Hinkie
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Eric Crist
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Eric Crist
. 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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Hinkie
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Giorgos Keramidas
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

Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

2007-08-29 Thread Eric Crist
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

portsnap from cron

2007-07-29 Thread Tobias Roth
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

Re: portsnap from cron

2007-07-29 Thread Garrett Cooper
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

Re: portsnap from cron

2007-07-29 Thread Tobias Roth
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

Re: portsnap from cron

2007-07-29 Thread Rakhesh Sasidharan
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

Re: Can cron e-mail HTML?

2007-07-19 Thread Tom Evans
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

Re: Can cron e-mail HTML?

2007-07-19 Thread Mikhail Teterin
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

Re: Can cron e-mail HTML?

2007-07-19 Thread Tom Evans
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

Re: Can cron e-mail HTML?

2007-07-19 Thread Mikhail Teterin
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

Re: cron job every 5 hours

2007-07-18 Thread RW
;)..). 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

Re: cron job every 5 hours

2007-07-17 Thread Olivier Nicole
, 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

Re: cron job every 5 hours

2007-07-17 Thread Fredrik Tolf
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

Re: cron job every 5 hours

2007-07-17 Thread Garrett Cooper
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

Re: cron job every 5 hours

2007-07-17 Thread Garrett Cooper
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

Re: Can cron e-mail HTML?

2007-07-16 Thread Ruben de Groot
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

Re: Can cron e-mail HTML?

2007-07-15 Thread Derek Ragona
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

Re: Can cron e-mail HTML?

2007-07-15 Thread Daniel Bye
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

Re: Can cron e-mail HTML?

2007-07-15 Thread Mikhail Teterin
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

Re: Can cron e-mail HTML?

2007-07-15 Thread Derek Ragona
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

Re: cron job every 5 hours

2007-07-15 Thread Olivier Nicole
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

Re: cron job every 5 hours

2007-07-15 Thread Garrett Cooper
, 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

Can cron e-mail HTML?

2007-07-14 Thread Mikhail Teterin
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

Re: Can cron e-mail HTML?

2007-07-14 Thread Mikhail Teterin
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

Re: Can cron e-mail HTML?

2007-07-14 Thread Mikhail Teterin
= 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

Re: Can cron e-mail HTML?

2007-07-14 Thread Mikhail Teterin
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

Re: Can cron e-mail HTML?

2007-07-14 Thread Daniel Bye
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

Re: Can cron e-mail HTML?

2007-07-14 Thread Daniel Bye
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

Re: Can cron e-mail HTML?

2007-07-14 Thread Mikhail Teterin
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

cron job every 5 hours

2007-07-13 Thread Dave
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.

Re: cron job every 5 hours

2007-07-13 Thread Duane Hill
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

Re: cron job every 5 hours

2007-07-13 Thread Josh Paetzel
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

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

cron mystery

2007-02-26 Thread Robin Becker
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

Re: cron mystery

2007-02-26 Thread Chuck Swiger
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

Re: cron mystery

2007-02-26 Thread Robin Becker
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

Re: cron mystery

2007-02-26 Thread Derek Ragona
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

cron problem

2007-01-30 Thread Charlie McElfresh
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

Re: cron problem

2007-01-30 Thread Oliver Koch
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

Re: cron problem

2007-01-30 Thread Gerard Seibert
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

Re: CRON Script not working right.

2007-01-17 Thread Derek Ragona
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

CRON Script not working right.

2007-01-16 Thread Don O'Neil
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

Re: CRON Script not working right.

2007-01-16 Thread Bill Campbell
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

Re: cron not running

2007-01-01 Thread Annelise Anderson
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

cron not running

2006-12-28 Thread steve
. 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

Re: cron not running

2006-12-28 Thread Derek Ragona
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

Re: cron not running

2006-12-28 Thread Roger Olofsson
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

Re: cron not running

2006-12-28 Thread James Riendeau
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

memory limit in cron

2006-12-06 Thread Alexey Sveshnikov
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

Trouble-shooting Cron Problems FreeBSD5.4

2006-10-31 Thread Martin McCormick
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

Re: Trouble-shooting Cron Problems FreeBSD5.4

2006-10-31 Thread Lane
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

Re: Trouble-shooting Cron Problems FreeBSD5.4

2006-10-31 Thread Dan Nelson
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

Re: Trouble-shooting Cron Problems FreeBSD5.4

2006-10-31 Thread Martin McCormick
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).

Re: Strange cron behavior

2006-10-05 Thread Damian Wiest
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

Re: Strange cron behavior

2006-10-04 Thread stan
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

Re: Strange cron behavior

2006-10-04 Thread RW
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

Strange cron behavior

2006-10-03 Thread stan
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

Re: Strange cron behavior

2006-10-03 Thread Philip Hallstrom
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

Re: Strange cron behavior

2006-10-03 Thread Atom Powers
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

Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Martin McCormick
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

Re: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Martin McCormick
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

Re: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Bernd Trippel
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

Re: e-mail from cron

2006-08-24 Thread Lisa Casey
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

e-mail from cron

2006-08-23 Thread Lisa Casey
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

Re: e-mail from cron

2006-08-23 Thread albi
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

Re: e-mail from cron

2006-08-23 Thread Alex Zbyslaw
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 * *

Re: e-mail from cron

2006-08-23 Thread Dan Nelson
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

Re: e-mail from cron

2006-08-23 Thread Bill Moran
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

Re: e-mail from cron

2006-08-23 Thread David King
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

Re: e-mail from cron

2006-08-23 Thread David King
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

Re: e-mail from cron

2006-08-23 Thread Bill Moran
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

Current Cron Log

2006-07-26 Thread Nicky
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

Re: Current Cron Log

2006-07-26 Thread Dan Nelson
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

cron job limits

2006-06-13 Thread Jim Pazarena
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

Re: cron job limits

2006-06-13 Thread Chuck Swiger
/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

Re: cron job limits

2006-06-13 Thread Derek Ragona
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

Re: how does cron exec jobs?

2006-06-08 Thread Olivier Nicole
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

Re: how does cron exec jobs?

2006-06-08 Thread Atom Powers
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

Re: how does cron exec jobs?

2006-06-08 Thread Olivier Nicole
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

Re: how does cron exec jobs?

2006-06-08 Thread N.J. Thomas
* 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

<    1   2   3   4   5   6   7   >