Re: Cron Not Sending Mail

2009-03-03 Thread APseudoUtopia
On Mon, Mar 2, 2009 at 10:14 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia apseudouto...@gmail.com wrote: [snip] # # User www's crontab # Note, I also tried removing the MAILTO to no avail # MAILTO=root # m     h       dom     mon    

Re: Cron Not Sending Mail

2009-03-03 Thread Glen Barber
On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia apseudouto...@gmail.com wrote: Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have a shell, it's one I use on a daily basis): SHELL=/bin/sh mailto=my_email_acco...@gmail.com *       *      

Re: Cron Not Sending Mail

2009-03-03 Thread Morgan Wesström
Glen Barber wrote: On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia apseudouto...@gmail.com wrote: Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have a shell, it's one I use on a daily basis): SHELL=/bin/sh

Re: Cron Not Sending Mail

2009-03-03 Thread APseudoUtopia
On Tue, Mar 3, 2009 at 4:17 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia apseudouto...@gmail.com wrote: Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have a shell, it's one I use on a

Re: Cron Not Sending Mail

2009-03-03 Thread APseudoUtopia
On Tue, Mar 3, 2009 at 4:52 PM, Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: Glen Barber wrote: On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia apseudouto...@gmail.com wrote: Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have

Re: Cron Not Sending Mail

2009-03-03 Thread Glen Barber
On Tue, Mar 3, 2009 at 5:29 PM, APseudoUtopia apseudouto...@gmail.com wrote: I have tested it - and sending mail manually from command line to the gmail account works fine without any problems. What I'm saying is that you changed two of the variables without actually verifying one or the

Re: Cron Not Sending Mail

2009-03-03 Thread APseudoUtopia
On Tue, Mar 3, 2009 at 5:44 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Tue, Mar 3, 2009 at 5:29 PM, APseudoUtopia apseudouto...@gmail.com wrote: I have tested it - and sending mail manually from command line to the gmail account works fine without any problems. What I'm saying is

Re: Cron Not Sending Mail

2009-03-03 Thread Mel
On Tuesday 03 March 2009 13:44:34 APseudoUtopia wrote: On Tue, Mar 3, 2009 at 4:52 PM, Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: Glen Barber wrote: On Tue, Mar 3, 2009 at 4:10 PM, APseudoUtopia apseudouto...@gmail.com wrote: Thanks for the tips. I've put the following line

Re: Cron Not Sending Mail

2009-03-03 Thread Morgan Wesström
relay=...@localhost Isn't w...@localhost a very weird hostname for a relay? Can you really resolve that into an IP address? /Morgan Hm, I'm not sure where it's getting that from. The MAILTO variable is set in the crontab, so it shouldn't be going to or relaying through localhost at all,

Re: Cron Not Sending Mail

2009-03-03 Thread APseudoUtopia
provide a diff -u between /etc/mail/freebsd.mc and /etc/mail/{hostname}.mc ? /Morgan I'd switch over to postfix, but I'm only using this to send output from cron and the daily security run scripts. I don't receive any mail over the network, so I think it'd be pointless to go through the effort

Re: Cron Not Sending Mail

2009-03-02 Thread APseudoUtopia
On Sun, Mar 1, 2009 at 9:03 PM, Frank Shute fr...@shute.org.uk wrote: On Sun, Mar 01, 2009 at 02:24:47PM -0500, APseudoUtopia wrote: Cron is not sending output as emails. I noticed this when I stopped seeing the output of a backup script in my daily email. I thought there was a problem

Re: Cron Not Sending Mail

2009-03-02 Thread Frank Shute
On Sun, Mar 01, 2009 at 02:24:47PM -0500, APseudoUtopia wrote: Cron is not sending output as emails. I noticed this when I stopped seeing the output of a backup script in my daily email. I thought there was a problem with the backup script - but no, it's cron not sending the emails. I had

Re: Cron Not Sending Mail

2009-03-02 Thread Glen Barber
On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia apseudouto...@gmail.com wrote: [snip] # # User www's crontab # Note, I also tried removing the MAILTO to no avail # MAILTO=root # m     h       dom     mon     dow     cmd *       *       *       *       *       echo Hello [snip] 1.)

Cron Not Sending Mail

2009-03-01 Thread APseudoUtopia
Cron is not sending output as emails. I noticed this when I stopped seeing the output of a backup script in my daily email. I thought there was a problem with the backup script - but no, it's cron not sending the emails. I had this problem before on 6.1, which I never found a solution to. I gave

Re: Cron Not Sending Mail

2009-03-01 Thread Frank Shute
On Sun, Mar 01, 2009 at 02:24:47PM -0500, APseudoUtopia wrote: Cron is not sending output as emails. I noticed this when I stopped seeing the output of a backup script in my daily email. I thought there was a problem with the backup script - but no, it's cron not sending the emails. I had

Re: Running rsnapshot via cron reboots the machine

2008-12-18 Thread Mel
the machine roughly 30 minutes after the rsnapshot starts via CRON. Able to get any crash dumps? [1] I doubt it calls reboot system call after 30 minutes and if it's a heating issue, then it would power down not reboot. So, kernel is probably panicing. [1] http://www.freebsd.org/doc

Re: Running rsnapshot via cron reboots the machine

2008-12-18 Thread David N
.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. Able to get any crash dumps? [1] I doubt it calls reboot system call after 30 minutes and if it's a heating issue, then it would power down not reboot. So, kernel

Re: Running rsnapshot via cron reboots the machine

2008-12-17 Thread Mel
. (GLabel) /dev/ufs/BackupDisk I changed to rsnapshot recently, with the External HDD in glabel + gjournal (/dev/da0s1.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. Able to get any crash dumps? [1] I doubt it calls reboot

Re: Running rsnapshot via cron reboots the machine

2008-12-17 Thread David N
to an external disk USB 2.0 SATA disk, and it was working well. (GLabel) /dev/ufs/BackupDisk I changed to rsnapshot recently, with the External HDD in glabel + gjournal (/dev/da0s1.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. Able

Running rsnapshot via cron reboots the machine

2008-12-15 Thread David N
, with the External HDD in glabel + gjournal (/dev/da0s1.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. If i run rsnapshot without CRON, eg. via the command line it works fine. (I'm compiling the new kernel p6 whilst doing

Re: Running cron jobs as nobody

2008-10-07 Thread DAve
showuser nobody Spot the difference (hint: /nonexistent) That was my first thought as well. After reading some of the responses I still thought it odd that cron would not run the script as nobody. So I setup two scripts to dump the env vars into a file, one script runs from /etc/crontab and one

Re: Running cron jobs as nobody

2008-10-05 Thread Mel
On Thursday 02 October 2008 17:11:52 DAve wrote: Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script

Re: Running cron jobs as nobody

2008-10-03 Thread Derek Ragona
to become nobody. echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 2) nobody, as expected, has no shell or home dir in /etc/password. I searched around for an answer but didn't see anything concerning this other than a patch to cron to check if setuid fails. Is setting the user

Running cron jobs as nobody

2008-10-02 Thread DAve
/locate.updatedb | nice -5 su -fm nobody || rc=3 2) nobody, as expected, has no shell or home dir in /etc/password. I searched around for an answer but didn't see anything concerning this other than a patch to cron to check if setuid fails. Is setting the user to nobody in /etc/crontab not possible

Re: Running cron jobs as nobody

2008-10-02 Thread Bill Campbell
You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E.

Re: Running cron jobs as nobody

2008-10-02 Thread DAve
Bill Campbell wrote: You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill I am being told the developer tried a user crontab without success. I've not suggested they try su

Re: Cron Question

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

portsnap in cron and firewall

2008-09-05 Thread Albert Shih
--all pf command to close inside -- outside connection But now with portsnap cron (that's mean random sleep) I don't known when the system try to connect outside. Do you have any idea how can I make my update using portsnap (I known I can use cvsup) in a crontab with my network config ? Regards

RE: portsnap in cron and firewall

2008-09-05 Thread Sean Cavanaugh
Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Subject: portsnap in cron and firewall Hi all I've some servers for internal use. On those servers I have some pf (or ipfw) rule to deny any connection from inside to outside. Long time

Re: portsnap in cron and firewall

2008-09-05 Thread Albert Shih
Le 05/09/2008 à 11:33:59-0400, Sean Cavanaugh a écrit Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Subject: portsnap in cron and firewall Hi all I've some servers for internal use. On those servers I have some pf (or ipfw) rule

RE: portsnap in cron and firewall

2008-09-05 Thread Sean Cavanaugh
Date: Fri, 5 Sep 2008 17:43:44 +0200 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: freebsd-questions@freebsd.org Subject: Re: portsnap in cron and firewall Le 05/09/2008 à 11:33:59-0400, Sean Cavanaugh a écrit Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED

Re: portsnap in cron and firewall

2008-09-05 Thread Albert Shih
Le 05/09/2008 à 11:51:57-0400, Sean Cavanaugh a écrit --- Yes I known. That's why I'm asking you how can I make portsnap through the cron and opening firewall just before he going to make the connection

Re: portsnap in cron and firewall

2008-09-05 Thread RW
pf command to open inside -- outside connection cvsup portupgrade --fetch-only --all pf command to close inside -- outside connection But now with portsnap cron (that's mean random sleep) I don't known when the system try to connect outside. Do you have any idea how can I make my update

Re: portsnap in cron and firewall

2008-09-05 Thread RW
On Fri, 5 Sep 2008 16:49:26 +0100 RW [EMAIL PROTECTED] wrote: On Fri, 5 Sep 2008 16:14:02 +0200 Albert Shih [EMAIL PROTECTED] wrote: But now with portsnap cron (that's mean random sleep) I don't known when the system try to connect outside. You can do this sleep `jot -r 1 0 3599

Re: Cron Question

2008-09-03 Thread Derek Ragona
At 10:45 AM 9/2/2008, ElihuJ wrote: Hi all. I have a question about cron jobs that seem to be running to long or with multiple copies of itself. For example, I have a backup script that I run that seems to make multiple copies of itself. If I view the running processes I see numerous instances

Re: Cron Question

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

Cron Question

2008-09-02 Thread ElihuJ
Hi all. I have a question about cron jobs that seem to be running to long or with multiple copies of itself. For example, I have a backup script that I run that seems to make multiple copies of itself. If I view the running processes I see numerous instances of the same cron job

Re: Cron Question

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

Re: Cron Question

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

Re: Cron Question

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

Re: Cron Question

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

Re: restart named in a cron

2008-06-25 Thread Nicolas Letellier
Le Tue, 24 Jun 2008 21:48:42 +0300, Manolis Kiagias [EMAIL PROTECTED] a écrit : Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0

restart named in a cron

2008-06-24 Thread Nicolas Letellier
Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo Errors when verifying named configuration exit 1 else /etc/rc.d/named restart /dev/null fi # Ok

Re: restart named in a cron

2008-06-24 Thread Schiz0
On Tue, Jun 24, 2008 at 2:17 PM, Nicolas Letellier [EMAIL PROTECTED] wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo Errors when verifying named

Re: restart named in a cron

2008-06-24 Thread Kevin Kinsey
Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo Errors when verifying named configuration exit 1 else /etc/rc.d/named

Re: restart named in a cron

2008-06-24 Thread Jerry McAllister
On Tue, Jun 24, 2008 at 08:17:20PM +0200, Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo Errors when verifying named

Re: restart named in a cron

2008-06-24 Thread Manolis Kiagias
Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo Errors when verifying named configuration exit 1 else /etc/rc.d/named

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-09 Thread Gilles
On Sat, 03 May 2008 16:46:27 +0200, Gilles [EMAIL PROTECTED] wrote: What command-line FTP client would you recommend for this? It looks like lftp is not running like I thought it would :/ Until I ran the following commands manually instead of through CRON, some files on the remote source FTP

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-09 Thread Gilles
On Sat, 10 May 2008 01:53:13 +0200, Gilles [EMAIL PROTECTED] wrote: It looks like lftp is not running like I thought it would Found what it was: The script worked fine when ran manually, but failed when ran by CRON because it couldn't locate lftp: Downloading from Source FTP /var/sync.bash: line

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-04 Thread Gilles
On Sat, 03 May 2008 11:34:30 -0700, prad [EMAIL PROTECTED] wrote: i like lftp the best. you can script it and everything has always worked smoothly for me using it. Thanks guys, lftp did the job. I'll put those two lines in a script and add it to CRON: lftp -u joe,mypass -e mirror -vn ./files

[CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Gilles
Hello I need to run a CRON job to download files from one FTP server if they're more recent, and upload them to another FTP server. The files all live in one directory, so there's no need for recursion. What command-line FTP client would you recommend for this? Thank you

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Andrew Pantyukhin
On Sat, May 03, 2008 at 04:46:27PM +0200, Gilles wrote: Hello I need to run a CRON job to download files from one FTP server if they're more recent, and upload them to another FTP server. The files all live in one directory, so there's no need for recursion. What command-line FTP

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Jeffrey Goldberg
On May 3, 2008, at 9:46 AM, Gilles wrote: I need to run a CRON job to download files from one FTP server if they're more recent, and upload them to another FTP server. The files all live in one directory, so there's no need for recursion. What command-line FTP client would you

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread prad
On Sat, 03 May 2008 16:46:27 +0200 Gilles [EMAIL PROTECTED] wrote: What command-line FTP client would you recommend for this? i like lftp the best. you can script it and everything has always worked smoothly for me using it. -- In friendship, prad ...

Re: Cron question

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

Re: Cron question

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

Cron question

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

Re: Cron question

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

Re: Cron question

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

Re: Cron question

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

Re: cron to attach a gz file

2008-02-01 Thread Mel
On Friday 01 February 2008 08:48:02 Peter Boosten wrote: [EMAIL PROTECTED] wrote: I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip

cron to attach a gz file

2008-01-31 Thread Zbigniew Szalbot
Hello, I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? Also, is it possible to actually transfer the log file by ftp using cron? If so, would anyone

Re: cron to attach a gz file

2008-01-31 Thread Peter Boosten
Zbigniew Szalbot wrote: Hello, I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz

Re: cron to attach a gz file

2008-01-31 Thread perryh
I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail -s logfile

Re: cron to attach a gz file

2008-01-31 Thread Peter Boosten
[EMAIL PROTECTED] wrote: I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail -s

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-15 Thread Kevin Kinsey
to putting the other cron job in marks??? Well, I think I messed up in my suggestion, by omitting the CRON at the end. My point/thought was, put the entire command /path/to/script.sh ARG in quotes. Cron is pretty archaic, and I wondered if it was trying to run /path/to/script.sh and ARG

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-15 Thread Ian Smith
...). All the crons are cleared out right now... 'ps' shows only crond. Related to putting the other cron job in marks??? Well, I think I messed up in my suggestion, by omitting the CRON at the end. My point/thought was, put the entire command /path/to/script.sh ARG

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-13 Thread Rudy
Dan Nelson wrote: In the last episode (Dec 03), Support (Rudy) said: Below is part of the cron... Seems like any random cronjob can get clogged up... load varies from 0.2 to 1.0 on this dual-core box. I rebooted the box -- cron's continue to slowly pile up. One of the cronjobs that is 'stuck

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-13 Thread Kevin Kinsey
Rudy wrote: Dan Nelson wrote: In the last episode (Dec 03), Support (Rudy) said: Below is part of the cron... Seems like any random cronjob can get clogged up... load varies from 0.2 to 1.0 on this dual-core box. I rebooted the box -- cron's continue to slowly pile up. One of the cronjobs

cron pile up! Lot's of cron: running job (cron)

2007-12-03 Thread Rudy
cron jobs seem to get stuck. Not always, but within a day, there are at least 20 stuck. It is not always the same cronjob that does the sticking. :) When this occurs, I can run ps ax| grep cron and get a bunch of lines like this: 51921 ?? D 0:00.00 cron: running job (cron) 51922

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-03 Thread Kevin Kinsey
Rudy wrote: cron jobs seem to get stuck. Not always, but within a day, there are at least 20 stuck. It is not always the same cronjob that does the sticking. :) When this occurs, I can run ps ax| grep cron and get a bunch of lines like this: 51921 ?? D 0:00.00 cron: running job

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-03 Thread Support (Rudy)
Below is part of the cron... Seems like any random cronjob can get clogged up... load varies from 0.2 to 1.0 on this dual-core box. I rebooted the box -- cron's continue to slowly pile up. One of the cronjobs that is 'stuck' is this one: /root/bin/raid-status.sh which can be found here

Re: cron pile up! Lot's of cron: running job (cron)

2007-12-03 Thread Dan Nelson
In the last episode (Dec 03), Support (Rudy) said: Below is part of the cron... Seems like any random cronjob can get clogged up... load varies from 0.2 to 1.0 on this dual-core box. I rebooted the box -- cron's continue to slowly pile up. One of the cronjobs that is 'stuck' is this one

cron/send mail question

2007-11-15 Thread zbigniew szalbot
Dear all, What command (when using cron) should I invoke to automatically sent /var/log/exim/rejectlog file to a specified email address? I just need to analyze it and would best prefer to have it in my inbox in the morning. Thanks a lot in advance! Zbigniew Szalbot

Re: cron/send mail question

2007-11-15 Thread Steve Bertrand
zbigniew szalbot wrote: Dear all, What command (when using cron) should I invoke to automatically sent /var/log/exim/rejectlog file to a specified email address? I just need to analyze it and would best prefer to have it in my inbox in the morning. The following should be on one line

Re: cron/send mail question

2007-11-15 Thread cknipe
existats comes to mind as well. Does the whole analyze thing for you... Quoting Steve Bertrand [EMAIL PROTECTED]: zbigniew szalbot wrote: Dear all, What command (when using cron) should I invoke to automatically sent /var/log/exim/rejectlog file to a specified email address? I just

Re: cron/send mail question

2007-11-15 Thread Giorgos Keramidas
On 2007-11-15 13:47, zbigniew szalbot [EMAIL PROTECTED] wrote: Dear all, What command (when using cron) should I invoke to automatically sent /var/log/exim/rejectlog file to a specified email address? I just need to analyze it and would best prefer to have it in my inbox in the morning

Help Plz... Cron Job question....hellp...

2007-10-31 Thread VeeJay
Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Please help and advise… With a bundle of thanks! -- Thanks! BR

Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread VeeJay
Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Please help and advise… With a bundle of thanks! -- Thanks! BR

Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Bill Moran
In response to VeeJay [EMAIL PROTECTED]: Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Please help

Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Mike Jeays
On October 31, 2007 07:58:21 am VeeJay wrote: Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Please help

Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread John Nielsen
Quoting Mike Jeays [EMAIL PROTECTED]: On October 31, 2007 07:58:21 am VeeJay wrote: I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Please

Re: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Michaël Grünewald
VeeJay [EMAIL PROTECTED] writes: Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Why don't you use the following SH

Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/07, VeeJay wrote: I am running a status script written in Perl (*status.pl*) and want to have it *Always Running*. How can I check through CRON that status.pl is running and if NO, then start the script execution again? Run monit

Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread RW
On Wed, 31 Oct 2007 10:02:53 -0400 John Nielsen [EMAIL PROTECTED] wrote: This should probably be something like ps -ax | grep 'status.pl' | grep -v grep so you don't get false positives from the grep process itself. or simply use: pgrep status\.pl

Re: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Tino Engel
call a script called script.sh from cron e.g. every minute. script.sh contains: #!/bin/sh ps -a | grep status.pl | | perl status.pl Am Mittwoch 31 Oktober 2007 08:32 schrieb VeeJay: Hello Gurus…. I am running a status script written in Perl (*status.pl*) and want to have it *Always

FTP CRON Script

2007-10-10 Thread White Hat
This is driving me crazy. I have a small script that I run from CRON. It is run as a regular user and not as ROOT, although I have tried it both ways. It uploads SPAM to the 'knujon.com' site'. I have created a ~/.netrc file that looks like this: machine knujon.com login user

Re: FTP CRON Script

2007-10-10 Thread Derek Ragona
At 04:31 PM 10/10/2007, White Hat wrote: This is driving me crazy. I have a small script that I run from CRON. It is run as a regular user and not as ROOT, although I have tried it both ways. It uploads SPAM to the 'knujon.com' site'. I have created a ~/.netrc file that looks like

Cron not working till 28/08/07

2007-09-19 Thread DSA - JCR
Hi all !! I had several crontab jobs in order to make backups. All worked fine till the 28-Aug-2007 when it seems to be stopped for some reason, I don't know why. I had a reporting in my mail box (external) also with daily, weekly and monthly reports, but suddenly all stopped (I don't receive

RE: Cron not working till 28/08/07

2007-09-19 Thread Matthijs Breemans
Hello, Can you give some more info, like posting te crontab? Matthijs -Oorspronkelijk bericht - Van: DSA - JCR [EMAIL PROTECTED] Aan: freebsd-questions@freebsd.org Verzonden: 19-9-07 14:36 Onderwerp: Cron not working till 28/08/07 Hi all !! I had several crontab jobs in order to make

Re: Cron not working till 28/08/07

2007-09-19 Thread Harry Matthiesen Jensen
close to the date you mentioned? ..and how does the cron files look like? -- Mvh Harry FreeBSD 7.0-CURRENT Sep 15 19:08:08 2007 i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Re: Cron not working till 28/08/07

2007-09-19 Thread RW
On Wed, 19 Sep 2007 12:36:07 - (GMT) DSA - JCR [EMAIL PROTECTED] wrote: Hi all !! I had several crontab jobs in order to make backups. All worked fine till the 28-Aug-2007 when it seems to be stopped for some reason, I don't know why. I had a reporting in my mail box (external) also

Re: Cron not working till 28/08/07

2007-09-19 Thread Derek Ragona
, but suddenly all stopped (I don't receive nothing in my email). Can you help me? Thanks in advance Juan Coruña Desarrollo de Software Atlantico Have you checked the system clock? Often cron jobs stop running when a server is rebooted with incorrect time and date. -Derek

Re: Cron not working till 28/08/07

2007-09-19 Thread Jerry McAllister
Hi, On Wed, Sep 19, 2007 at 12:36:07PM -, DSA - JCR wrote: Hi all !! I had several crontab jobs in order to make backups. All worked fine till the 28-Aug-2007 when it seems to be stopped for some reason, I don't know why. I had a reporting in my mail box (external) also with daily,

Re: cron not working till 28/08/07

2007-09-19 Thread Bill Vermillion
On Wed, Sep 19, 2007 at 21:46 , after knocking over a stack of dishes on the heat sink [EMAIL PROTECTED] wondered out loud about: Date: Wed, 19 Sep 2007 12:36:07 - (GMT) From: DSA - JCR [EMAIL PROTECTED] Subject: Cron not working till 28/08/07 Hi all !! I had several crontab jobs

cron jobs not done during sleep

2007-09-17 Thread Steve Franks
Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next time the system is successfully operational, will it? It's

Re: cron jobs not done during sleep

2007-09-17 Thread Bill Moran
In response to Steve Franks [EMAIL PROTECTED]: Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next time the system

Re: cron jobs not done during sleep

2007-09-17 Thread David Kelly
On Mon, Sep 17, 2007 at 08:22:45AM -0700, Steve Franks wrote: Correct me if I'm wrong, but cron doesn't keep track of the last time something was done, does it? Which is to say if my system is crashed, was asleep, or powered off when a job is supposed to happen, it will not happen the next

Re: cron jobs not done during sleep

2007-09-17 Thread RW
On Mon, 17 Sep 2007 08:22:45 -0700 Steve Franks [EMAIL PROTECTED] wrote: Is there a tool or setting to implement this functionality? I want something to happen weekly, I don't care when. One way is to install a crontab replacement like fcron, but the easiest way to handle this is to install

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

2007-08-31 Thread Hinkie
Dear People As a courtesy to anyone interested I have finally sovled this (I hope), this is what I did, this is on a FreeBSD pfSense firewall router. Essentially the fix is to ping the static IP's first hop, if this is down then flick the WAN NIC state down and up, this restores the lost

<    1   2   3   4   5   6   7   >