Re: how does cron exec jobs?

2006-06-08 Thread Dan Nelson
In the last episode (Jun 07), Atom Powers said: 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

how does cron exec jobs?

2006-06-07 Thread Atom Powers
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. (Running it from the shell is how I clear the hung state.) How can I simulate a cron job from the shell? There must be something different about the way cron

Re: cron job errors

2006-05-24 Thread Mark Busby
Mark Busby [EMAIL PROTECTED] writes: I getting errors from cron on this job. owner of /usr/libexec/sav-entropy is root:wheel email notice: Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy X-Cron-Env: SHELL=/bin/sh X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin X-Cron

cron job errors

2006-05-23 Thread Mark Busby
I getting errors from cron on this job. owner of /usr/libexec/sav-entropy is root:wheel email notice: Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy X-Cron-Env: SHELL=/bin/sh X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin X-Cron-Env: HOME=/ X-Cron-Env: LOGNAME=operator X

Re: cron job errors

2006-05-23 Thread Lowell Gilbert
Mark Busby [EMAIL PROTECTED] writes: I getting errors from cron on this job. owner of /usr/libexec/sav-entropy is root:wheel email notice: Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy X-Cron-Env: SHELL=/bin/sh X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin X

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

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 idea what did

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? ==

Re: cron question

2006-04-04 Thread Chuck Swiger
the full path to rndc in your shell script. You should not assume that the $PATH cron passes you is going to have that command available. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Re: cron question

2006-04-04 Thread Kevin Kinsey
? You forgot to use the full path to rndc in your shell script. You should not assume that the $PATH cron passes you is going to have that command available. And furthermore, you edited /etc/crontab or something similar instead of using crontab(1) to edit /var/cron/tabs/root. Nitpicky

Re: Cron operator /usr/libexec/save-entropy

2006-03-29 Thread Lowell Gilbert
Vaaf [EMAIL PROTECTED] writes: Cron keeps spamming me: override r operator/operator for /var/db/entropy/saved-entropy.6? (y/n [n]) not overwritten override r operator/operator for /var/db/entropy/saved-entropy.5? (y/n [n]) not overwritten override r operator

Cron operator /usr/libexec/save-entropy

2006-03-28 Thread Vaaf
Hello again! Cron keeps spamming me: override r operator/operator for /var/db/entropy/saved-entropy.6? (y/n [n]) not overwritten override r operator/operator for /var/db/entropy/saved-entropy.5? (y/n [n]) not overwritten override r operator/operator for /var/db

Re: Problems with Cron

2006-03-03 Thread perikillo
On 3/1/06, David J Brooks [EMAIL PROTECTED] wrote: On Wednesday 01 March 2006 01:10, perikillo wrote: root: not found The FAQ explains it all: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS David -- Sure God created the world in only six days

Re: Problems with Cron

2006-03-01 Thread David J Brooks
On Wednesday 01 March 2006 01:10, perikillo wrote: root: not found The FAQ explains it all: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS David -- Sure God created the world in only six days, but He didn't have an established userbase

Problems with Cron

2006-02-28 Thread perikillo
Hi people. I have 1 system running freebsd 5.4-p11, but since the first day of use root start getting a emails from cron that say this: Message 1: From [EMAIL PROTECTED] Tue Feb 28 23:10:06 2006 Date: Tue, 28 Feb 2006 23:10:01 -0800 (PST) From: [EMAIL PROTECTED] (Cron Daemon) To: [EMAIL

Cron Q

2006-02-21 Thread Graham Bentley
Is it OK to list two different tasks on two lines for the exactly the same time ? I did this and the second one didnt run maybe it was a problem with the job ... ___ freebsd-questions@freebsd.org mailing list

Re: Path And 'cron'

2006-02-21 Thread Warren Block
On Mon, 20 Feb 2006, Tim Daneliuk wrote: In case you're interested (or anyone else listening), it seems that 'chown' likes to live in /usr/sbin - i.e., A place not in the default path. As it happens, a root cron task is trying to run a script that uses 'chown' and is thus failing. I can

Re: Cron Q

2006-02-21 Thread Chuck Swiger
Graham Bentley wrote: Is it OK to list two different tasks on two lines for the exactly the same time ? I did this and the second one didnt run maybe it was a problem with the job ... You're probably better off having a one-line cron line which invokes a shell script that runs your two

Re: Path And 'cron'

2006-02-21 Thread Tim Daneliuk
Warren Block wrote: On Mon, 20 Feb 2006, Tim Daneliuk wrote: In case you're interested (or anyone else listening), it seems that 'chown' likes to live in /usr/sbin - i.e., A place not in the default path. As it happens, a root cron task is trying to run a script that uses 'chown' and is thus

Re: Path And 'cron'

2006-02-21 Thread James Long
Date: Tue, 21 Feb 2006 09:25:11 -0600 From: Tim Daneliuk [EMAIL PROTECTED] Subject: Re: Path And 'cron' To: Warren Block [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] The problem in this case is that it is not a shell script I own or maintain

Re: Path And 'cron'

2006-02-20 Thread Tim Daneliuk
Randy Pratt wrote: On Sun, 19 Feb 2006 15:25:49 -0600 Tim Daneliuk [EMAIL PROTECTED] wrote: Where is the default path for cron jobs established? (And can it be changed...) Take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html and see

Re: Path And 'cron'

2006-02-20 Thread Randy Pratt
On Mon, 20 Feb 2006 10:21:22 -0600 Tim Daneliuk [EMAIL PROTECTED] wrote: Randy Pratt wrote: On Sun, 19 Feb 2006 15:25:49 -0600 Tim Daneliuk [EMAIL PROTECTED] wrote: Where is the default path for cron jobs established? (And can it be changed...) Take a look at: http

Re: Path And 'cron'

2006-02-20 Thread Tim Daneliuk
Randy Pratt wrote: SNIP If I do not have a PATH= statement in a particular user's crontab, what is used for a default PATH? From man 5 crontab : Several environment variables are set up automatically by the cron (8) daemon. SHELL is set to /bin/sh, PATH is set to /usr/bin

Path And 'cron'

2006-02-19 Thread Tim Daneliuk
Where is the default path for cron jobs established? (And can it be changed...) TIA, -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP

Re: Path And 'cron'

2006-02-19 Thread David Stanford
Tim, The default location crontabs are stored in is /var/cron/tabs/username/, and yes they can be edited manually. -David On 2/19/06, Tim Daneliuk [EMAIL PROTECTED] wrote: Where is the default path for cron jobs established? (And can it be changed...) TIA

Re: Path And 'cron'

2006-02-19 Thread Randy Pratt
On Sun, 19 Feb 2006 15:25:49 -0600 Tim Daneliuk [EMAIL PROTECTED] wrote: Where is the default path for cron jobs established? (And can it be changed...) Take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html and see if that answers your question

daily cron messages

2006-02-16 Thread Matthew Bullock
FreeBSD secure.venturanetworks.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 I ran portupgrade -a to update all my packages a couple weeks ago, and since then I stopped receiving daily emails from the built-in cron jobs

Replacing cron with mcron

2006-02-09 Thread Iantcho Vassilev
Has anyone tried this? I even think of proposing this to the base system - cron is such an old idea.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL

Re: Replacing cron with mcron

2006-02-09 Thread Doug Poland
On 2/9/06, Iantcho Vassilev [EMAIL PROTECTED] wrote: Has anyone tried this? I even think of proposing this to the base system - cron is such an old idea.. But old ideas are not necessarily bad ideas... I've implemented mcron on two hosts that needed to have custom cron jobs replicated. I

Re: Replacing cron with mcron

2006-02-09 Thread Lowell Gilbert
Iantcho Vassilev [EMAIL PROTECTED] writes: Has anyone tried this? It is in ports, so I think some people are probably using it. I even think of proposing this to the base system - cron is such an old idea.. mcron is Gnu licensed, so it would have a difficult time being accepted for the base

Re: Replacing cron with mcron

2006-02-09 Thread Dan Nelson
In the last episode (Feb 09), Lowell Gilbert said: Iantcho Vassilev [EMAIL PROTECTED] writes: Has anyone tried this? It is in ports, so I think some people are probably using it. I even think of proposing this to the base system - cron is such an old idea.. mcron is Gnu licensed, so

Re: Replacing cron with mcron

2006-02-09 Thread Michael P. Soulier
On 09/02/06 Iantcho Vassilev said: Has anyone tried this? I even think of proposing this to the base system - cron is such an old idea.. What does mcron offer? My main complaints about cron are: 1. Difficult to do refined timing, like execute on the first tuesday of each month. I tend to use

Re: Replacing cron with mcron

2006-02-09 Thread Dan Nelson
In the last episode (Feb 09), Michael P. Soulier said: On 09/02/06 Iantcho Vassilev said: Has anyone tried this? I even think of proposing this to the base system - cron is such an old idea.. What does mcron offer? My main complaints about cron are: 1. Difficult to do refined timing

Re: Cron script redirection (probably stderr problem ?)

2006-01-19 Thread Lowell Gilbert
bsd [EMAIL PROTECTED] writes: Hello, I am using a little cron script to update my server that calls portsnap. Once this is done there is another piece of script that tells me which port(s) is to be updated with a simple call to a script that mainly execute portversion -l and mail me

Cron script redirection (probably stderr problem ?)

2006-01-18 Thread bsd
Hello, I am using a little cron script to update my server that calls portsnap. Once this is done there is another piece of script that tells me which port(s) is to be updated with a simple call to a script that mainly execute portversion -l and mail me the output of the command

cron

2005-12-08 Thread Beecher Rintoul
I have a script that is running in root's cron. The script runs successfully, but it emails me on completion with info I don't need. Is there a command I can add to have it not mail? I don't want to shut off all crons mail, just that one job. The only thing I could find in the man pages deal

Re: cron

2005-12-08 Thread Gerard Seibert
On Thursday, December 08, 2005 5:23:10 AM, Beecher Rintoul [EMAIL PROTECTED] Subject: cron Wrote these words of wisdom: I have a script that is running in root's cron. The script runs successfully, but it emails me on completion with info I don't need. Is there a command I can add to have

Re: cron

2005-12-08 Thread Beecher Rintoul
On Thursday 08 December 2005 01:39 am, Gerard Seibert wrote: On Thursday, December 08, 2005 5:23:10 AM, Beecher Rintoul [EMAIL PROTECTED] Subject: cron Wrote these words of wisdom: I have a script that is running in root's cron. The script runs successfully, but it emails me on completion

Re: strange entropy (or cron) message

2005-11-28 Thread nospam
To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy 5 : not found --- I have noticed that while still at the command line, the number 5 sporadically appears in the boot messages; the system responds with the equivalent

Re: strange entropy (or cron) message

2005-11-28 Thread Alex Zbyslaw
[EMAIL PROTECTED] wrote: I found this bit of stuff in the rc.conf: - # -- sysinstall generated deltas -- # Mon Oct 3 08:28:56 2005 moused_flags=ZAxisMapping 4 5 - I don't understand why there are doubled-double quotes. This is the only place in rc.conf that

Re: strange entropy (or cron) message

2005-11-28 Thread nospam
On Sunday 27 November 2005 08:29 pm, [EMAIL PROTECTED] wrote: Greetings - [...] filling up with strange messages regarding a save-entropy thing: --- Date: Sun, 27 Nov 2005 20:11:00 -0500 (EST) From: Cron Daemon [EMAIL PROTECTED] To: [EMAIL PROTECTED

strange entropy (or cron) message

2005-11-27 Thread nospam
Greetings - I have an installation of 5.3 that I am enjoying, but the root mailbox is filling up with strange messages regarding a save-entropy thing: --- Date: Sun, 27 Nov 2005 20:11:00 -0500 (EST) From: Cron Daemon [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: strange entropy (or cron) message

2005-11-27 Thread Beecher Rintoul
-0500 (EST) From: Cron Daemon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy 5 : not found --- I have noticed that while still at the command line, the number 5 sporadically appears in the boot messages

Re: Viewing Programs Running From CRON

2005-11-26 Thread Cezar Fistik
Hello Gerard, Friday, November 25, 2005, 10:45:51 PM, you wrote: I start a program from CRON. As an example, let us use /sysutils/portmanager. Now this program is being run in the background. How do I get it to run in the foreground so that I can view what it is doing, and or stop it if I

Viewing Programs Running From CRON

2005-11-25 Thread Gerard Seibert
I have asked many dumb questions before, and this will no doubt add to the list. Scenario: I start a program from CRON. As an example, let us use /sysutils/portmanager. Now this program is being run in the background. How do I get it to run in the foreground so that I can view what it is doing

Re: Viewing Programs Running From CRON

2005-11-25 Thread Alex Zbyslaw
Gerard Seibert wrote: I have asked many dumb questions before, and this will no doubt add to the list. Scenario: I start a program from CRON. As an example, let us use /sysutils/portmanager. Now this program is being run in the background. How do I get it to run in the foreground so that I

RE: Cron Job will not run.

2005-11-04 Thread Brandon Hinesley
You're right... it's for /usr/local/bin/bash. Obviously I had a lot more problems than I was aware of. Its working now; thanks, I appreciate everyone's help. for (( i = $numbkups ; i = 2 ; i-- )) do let from=i-1 mv -fv $dbkups/$from $dbkups/$i done Hmmm, what shell is this

Re: Cron Job will not run.

2005-11-04 Thread Giorgos Keramidas
On 2005-11-04 08:47, Brandon Hinesley [EMAIL PROTECTED] wrote: for (( i = $numbkups ; i = 2 ; i-- )) do let from=i-1 mv -fv $dbkups/$from $dbkups/$i done Hmmm, what shell is this supposed to run in? It doesn't look like /bin/sh syntax to me. You're right... it's for

Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
of the crontab file (As there should be) Here's some of /var/log/cron: Nov 3 09:00:00 server /usr/sbin/cron[56343]: (operator) CMD (/usr/libexec/save-entropy) Nov 3 09:00:00 server /usr/sbin/cron[56344]: (root) CMD (/usr/libexec/atrun) Nov 3 09:00:00 server /usr/sbin/cron[56345

Re: Cron Job will not run.

2005-11-03 Thread Alex Zbyslaw
the command line /usr/local/bin (where rsync lives) is in your path. From Cron it is not. Either add it to the crontab or set PATH in your script. The latter is recommended since the script works whatever the running user has their path set to. There may be some other path problem I've missed

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Well that's embarrassing. Good eye, thank you. Still not working though. -Original Message- From: DAve [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 12:37 PM To: Brandon Hinesley Subject: Re: Cron Job will not run. Brandon Hinesley wrote: Here's a copy of my backup

Re: Cron Job will not run.

2005-11-03 Thread Chris
in the FAQ :-) From the command line /usr/local/bin (where rsync lives) is in your path. From Cron it is not. Either add it to the crontab or set PATH in your script. The latter is recommended since the script works whatever the running user has their path set to. There may be some other

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
@freebsd.org Subject: Re: Cron Job will not run. Alex Zbyslaw wrote: Brandon Hinesley wrote: The script below works perfectly when I run it from a console, however, nothing at all seems to happen as evidenced by the backups not being rotated. I don't know if this makes a difference

FW: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
: Thursday, November 03, 2005 12:47 PM To: Brandon Hinesley Cc: freebsd-questions@freebsd.org Subject: Re: Cron Job will not run. Brandon Hinesley wrote: The script below works perfectly when I run it from a console, however, nothing at all seems to happen as evidenced by the backups not being rotated. I

Re: Cron Job will not run.

2005-11-03 Thread Nathan Vidican
May be a really dumb question here, but like all technical problems, start with the simple stuff: ps ax | grep cron Is cron even running? -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ Brandon Hinesley wrote: I forgot to mention that I've

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
If it's not, then someone's inserting things into my /var/log/cron! Here's some of /var/log/cron: Nov 3 09:00:00 server /usr/sbin/cron[56343]: (operator) CMD (/usr/libexec/save-entropy) Nov 3 09:00:00 server /usr/sbin/cron[56344]: (root) CMD (/usr/libexec/atrun) Nov 3 09

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
-av --delete $files/$docs $dbkups/0/ This is a FAQ, though I don't know if it's in the FAQ :-) From the command line /usr/local/bin (where rsync lives) is in your path. From Cron it is not. Either add it to the crontab or set PATH in your script. The latter is recommended since the script

Re: Cron Job will not run.

2005-11-03 Thread Nathan Vidican
lol - sorry to point out the obvious, but ya never know ;) - have seen worse/done worse myself... Anyhow, try modifying the script so it just outputs something to the console, see if cron logs/emails the output or not, then take it step-by-step from there; have it actually print out/echo

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
: freebsd-questions@freebsd.org Subject: Re: Cron Job will not run. Merely adding it as an assignment is not enough for child processes of the cron script to 'see' the value. Make sure you also 'export' the new PATH: PATH='...' export PATH Then the rsync process will use the new PATH

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 13:41, Brandon Hinesley [EMAIL PROTECTED] wrote: Okay, I exported the updated path to include /usr/local/bin. Still not working though. My script is in /usr/local/Backup/scripts/bkup-daily. Since I'm referencing the absolute path in /etc/crontab like this: 35 13 *

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Yes, it is. -rwxr-x--- 1 root wheel 1827 Nov 3 12:43 bkup-daily I don't have to export /usr/local/Backup/scripts, right? Hmmm, no, but is the script executable? ___ freebsd-questions@freebsd.org mailing list

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
time in the near future, and then stop cron. Run cron manually, as root, specifying at least the following debugging options and watch out when the scheduled event tries to run for interesting output on your terminal: # cron -x load,misc,pars,proc The meaning of these is explained in the manpage

RE: Cron Job will not run.

2005-11-03 Thread Brandon Hinesley
Okay, the problem seems to be with a certain part of my script. Like I said, it works fine when I start it manually (./) I set up a few checkpoints if you will, and I determined that it's this loop that cron has a problem with: for (( i = $numbkups ; i = 2 ; i-- )) do let from=i-1 mv

Re: Cron Job will not run.

2005-11-03 Thread Giorgos Keramidas
On 2005-11-03 16:33, Brandon Hinesley [EMAIL PROTECTED] wrote: Okay, the problem seems to be with a certain part of my script. Like I said, it works fine when I start it manually (./) I set up a few checkpoints if you will, and I determined that it's this loop that cron has a problem

Cron Runs Script Twice - Once With Error and Once Without?

2005-10-14 Thread Drew Tomlinson
I have a script that runs from cron. The script mounts an smbfs share on another machine, copies some files from it, and then unmounts the share. The script is run from a 4.11 machine. It's connecting to a 5.4 box running Samba 3.0.20. I'm trying to figure out why it runs twice. Once

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

2005-09-14 Thread Paul Schiro
Doh! and Duh! Sorry to waste list space on that one... ;) Fixed now... wierd though since i use vi and don't set it to do any wrapping. -- Paul Schiro Sr. Systems Engineer American Select [EMAIL PROTECTED] Dan Nelson wrote: In the last episode (Sep 13), Paul Schiro said: I just got a

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

2005-09-13 Thread Paul Schiro
I just got a FreeBSD 5.4-STABLE box up and running, and I noticed that all my rc scripts (despite otherwise working properly) output the following to stderr when running: -snip- gs: not found files: not found -snip- What is the deal with that? I have no made any special modifications to

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

2005-09-13 Thread Dan Nelson
In the last episode (Sep 13), Paul Schiro said: I just got a FreeBSD 5.4-STABLE box up and running, and I noticed that all my rc scripts (despite otherwise working properly) output the following to stderr when running: -snip- gs: not found files: not found -snip- I'd check for typos in

Restarting MySQL from CRON

2005-09-10 Thread Gerard Seibert
From time to time, I have found that MySQL has ceased to run. I have a mailing program that requires that MySQL be running in order for it to operate. Since I cannot seem to track down why it occasionally stops functioning, and since the program that depends on it is started via CRON, would

Re: Restarting MySQL from CRON

2005-09-10 Thread Dan Nelson
the program that depends on it is started via CRON, would it be advisable to put an entry into the CRON that would restart MYSQL prior to the other program running. I was thinking of using this: 0 0 * * * /usr/local/etc/rc.d/mysql-server.sh restart Would that work, or is there a better way

Re[2]: Restarting MySQL from CRON

2005-09-10 Thread Gerard Seibert
. Since I cannot seem to track down why it occasionally stops functioning, and since the program that depends on it is started via CRON, would it be advisable to put an entry into the CRON that would restart MYSQL prior to the other program running. I was thinking of using this: 0 0

Re: Restarting MySQL from CRON

2005-09-10 Thread Dan Nelson
that MySQL be running in order for it to operate. Since I cannot seem to track down why it occasionally stops functioning, and since the program that depends on it is started via CRON, would it be advisable to put an entry into the CRON that would restart MYSQL prior to the other

Re[2]: Restarting MySQL from CRON

2005-09-10 Thread Gerard Seibert
On Sat, 10 Sep 2005 13:15:57 -0500, Dan Nelson [EMAIL PROTECTED] Replied to: Re: Restarting MySQL from CRON With these words of wisdom: In the last episode (Sep 10), Gerard Seibert said: On Saturday, September 10, 2005 12:27:02 PM Dan Nelson [EMAIL PROTECTED] wrote: In the last episode

Help running shell script from cron

2005-09-09 Thread Sandy Knight
I am having trouble configuring my shell scripts to run under cron (user level, not root). I have set up a test.sh script which sends me an email, it works fine from the command line (ssh). the script is as follows: #!/bin/sh echo helloworld | mail -s helloworld [EMAIL PROTECTED] php /home

Re: Help running shell script from cron

2005-09-09 Thread jdyke
there is a possibility that the 'not found' is coming from your call to php and not that it can't find test.sh either comment out that php line, or use /full/path/to/php /home/a_user/cron/test.php HTH Jeff Sandy Knight wrote: I am having trouble configuring my shell scripts to run under cron

Re: Help running shell script from cron

2005-09-09 Thread Frank Mueller - emendis GmbH
Always use full path in Scrips, e.g. /bin/echo ... /usr/local/bin/php .. Greetz, Ice Sandy Knight schrieb: I am having trouble configuring my shell scripts to run under cron (user level, not root). I have set up a test.sh script which sends me an email, it works fine from

Re: Help running shell script from cron

2005-09-09 Thread Kevin Kinsey
Sandy Knight wrote: I am having trouble configuring my shell scripts to run under cron (user level, not root). I have set up a test.sh script which sends me an email, it works fine from the command line (ssh). the script is as follows: #!/bin/sh echo helloworld | mail -s helloworld [EMAIL

portsnap and updates using cron

2005-08-31 Thread martin hudec
Hello, I am using portsnap to update my ports tree like following: 1. Calling portsnap cron from root's cron 2. Updating ports tree using portsnap -I update from root's cron But it does not update anything by portsnap cron. In /usr/local/etc/portsnap.conf I have: WORKDIR=/usr

Re: portsnap and updates using cron

2005-08-31 Thread Kevin Kinsey
martin hudec wrote: Hello, I am using portsnap to update my ports tree like following: 1. Calling portsnap cron from root's cron 2. Updating ports tree using portsnap -I update from root's cron But it does not update anything by portsnap cron. In /usr/local/etc/portsnap.conf I have

Re: portsnap and updates using cron

2005-08-31 Thread martin hudec
Hello, On Wed, Aug 31, 2005 at 08:54:31AM -0500 or thereabouts, Kevin Kinsey wrote: Not sure. Check the logs, etc. If you're familiar with ktrace, kdump, etc., you could follow the program's progress if you find no log information. /var/log/cron reports me that cronjob was done. No I am

Re: portsnap and updates using cron

2005-08-31 Thread Norberto Meijome
martin hudec wrote: Hello, On Wed, Aug 31, 2005 at 08:54:31AM -0500 or thereabouts, Kevin Kinsey wrote: Not sure. Check the logs, etc. If you're familiar with ktrace, kdump, etc., you could follow the program's progress if you find no log information. /var/log/cron reports me

Re: portsnap and updates using cron

2005-08-31 Thread Will Maier
On Wed, Aug 31, 2005 at 04:08:46PM +0200, martin hudec wrote: First, I tell my custom script (with environment set by PATH=) to call portsnap fetch portsnap update, but he is unable to fetch anything at all, therefore I started to use portsnap cron and I hoped to be able to fetch it. So what

Re: portsnap and updates using cron

2005-08-31 Thread martin hudec
other ?trace found in linux. Hmmm, thanks for info, this kstuff is really much much better than strace :). Never heard of that, but now I am pretty impressed. Thanks. then it seems it's a portsnap problem and not cron...get it working in your normal shell first and then focus on automating

Re: portsnap and updates using cron

2005-08-31 Thread martin hudec
Hello, On Wed, Aug 31, 2005 at 11:28:03AM -0500 or thereabouts, Will Maier wrote: So what happens when you run: # /usr/local/sbin/portsnap fetch # /usr/local/sbin/portsnap update They are both running pretty well from command line. on the command line? Your portsnap.conf

RE: portsnap and updates using cron

2005-08-31 Thread Ruben Bloemgarten
Hi there, To run portsnap and/or freebsd update as a cron job use : #portsnap cron *NOT fetch Regards, Ruben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of martin hudec Sent: August 31, 2005 6:30 PM To: freebsd-questions@freebsd.org Subject: Re

Re: portsnap and updates using cron

2005-08-31 Thread Will Maier
://portsnap.daemonology.net This is fine. Looking back over the thread, you mention that, in cron, you're running the following: portsnap cron portsnap -I update ^^ You also say that you think your process isn't functioning because the ctimes in /usr/ports are too old. You do realize

(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

using Linux aaccli in a cron job

2005-08-10 Thread Chad Leigh -- Shire.Net LLC
Hi I have a 5.4-R system with an Adaptec 2200S. I also have Linux emulation running and the aac_linux kernel module installed and I can run the aaccli program successfully in a terminal window and use it to check status of the RAID controller. However, if I do it from a cron job (same

Re: using Linux aaccli in a cron job

2005-08-10 Thread Dan Nelson
controller. However, if I do it from a cron job (same script as I run in a terminal) I get no output. aaccli uses terminal control commands and I suspect it is detecting that it is not connected to a terminal and hence not running. However, I so-far have not been able to get the Cron output

Re: using Linux aaccli in a cron job

2005-08-10 Thread Chad Leigh -- Shire.Net LLC
in a terminal window and use it to check status of the RAID controller. However, if I do it from a cron job (same script as I run in a terminal) I get no output. aaccli uses terminal control commands and I suspect it is detecting that it is not connected to a terminal and hence not running. However, I so-far

Fixed (Cron fails. Error in /var/log/maillog: No recipient)

2005-07-01 Thread Francisco Reyes
On Wed, 29 Jun 2005, Francisco Reyes wrote: For the archives. Problem was crontab failing. first thing I noticed was postfix/sendmail[36590]: fatal: No recipient addresses found in message header In /var/log/maillog Then someone suggested to look at /var/log/cron There I saw errors like

Running Programs from CRON as root

2005-06-29 Thread Gerard Seibert
I am not sure how to go about this. If I do not want to touch the system CRON, is it possible to create a personal CRON that could run two programs, both at the super user level Example: I want to update the ports tree and then run portmanager to install the updates. These obviously have

Re: Running Programs from CRON as root

2005-06-29 Thread Philip Hallstrom
On Wed, 29 Jun 2005, Gerard Seibert wrote: I am not sure how to go about this. If I do not want to touch the system CRON, is it possible to create a personal CRON that could run two programs, both at the super user level Example: I want to update the ports tree and then run portmanager

Cron fails. Error in /var/log/maillog: No recipient

2005-06-29 Thread Francisco Reyes
Have a crontab 14 22 * * * /usr/home/hank/bin/tozoraida.sh which is not running When I try to research it the only thing I see is an error in maillog postfix/sendmail[36590]: fatal: No recipient addresses found in message header Have setup crontab on several other machines and never had any

Re: How do I run this cron job?

2005-05-20 Thread Sergey S. Ropchan
On Fri, 2005-05-20 at 01:49 +0300, Odhiambo Washington wrote: Perhaps trivial How do I run a cron job at the end of every month? #minute hourmdaymonth wdaywho command 59 23 29 * * user/path/to/cmd http://www.netmeister.org/news

Re: How do I run this cron job?

2005-05-20 Thread Rob
Odhiambo Washington wrote: How do I run a cron job at the end of every month? Depending how date-critical 'end of every month' is to you, you may also consider adding your script in /etc/periodic/monthly/ Rob. __ Do You Yahoo!? Tired of spam

How do I run this cron job?

2005-05-19 Thread Odhiambo Washington
Perhaps trivial How do I run a cron job at the end of every month? -Wash http://www.netmeister.org/news/learn2quote.html -- +==+ |\ _,,,---,,_ | Odhiambo Washington[EMAIL PROTECTED] Zzz

Re: How do I run this cron job?

2005-05-19 Thread Danny Howard
Odhiambo Washington wrote: Perhaps trivial How do I run a cron job at the end of every month? Type: man 5 crontab [...] # run at 2:15pm on the first of every month -- output mailed to paul 15 14 1 * * $HOME/bin/monthly [...] When you are ready to rock, type: crontab -e Good Luck

Re: How do I run this cron job?

2005-05-19 Thread Warren Block
On Fri, 20 May 2005, Odhiambo Washington wrote: Perhaps trivial How do I run a cron job at the end of every month? Your question is a little unclear. Do you mean how do I run a job at the end of a month when the months are not the same length so I can't use a fixed day-of-the-month value

5.3 sendmail delayed delivery from cron

2005-05-09 Thread Viren Patel
Hello. We have a FreeBSD 5.3 box with stock sendmail running in delivery only mode (sendmail=NO). When a cron job generates output, the delivery of that message to external address is delayed by one day. Nothing obvious is in the maillog. The system can resolve hostnames and MX records. The proper

<    1   2   3   4   5   6   7   >