RE: crontab entry

2003-10-10 Thread Chris Purcell
> Sounds like cron isn't running as root. So it is able to write a file > without hard coding a path to it because it is creating the file in it's > working directory. Create a directory that the user cron is running as > can write to. That sounds like what the problem is. > > Wade Actually, Ju

RE: crontab entry

2003-10-10 Thread Wade Chandler
Sounds like cron isn't running as root. So it is able to write a file without hard coding a path to it because it is creating the file in it's working directory. Create a directory that the user cron is running as can write to. That sounds like what the problem is. Wade -Original Message--

Re: crontab entry

2003-10-10 Thread Justin Banks
Chris Purcell wrote > root's crontab looks something like this... > > SHELL=/bin/bash > MAILTO=root > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin > rsync=/usr/bin/rsync -e ssh -azv --delete --delete-excluded > --exclude=/some/folder [EMAIL PROTECTED]::home /home/ > > 7 */2 *

Re: Crontab question

2003-09-02 Thread Sean Estabrooks
On Tue, 2 Sep 2003 15:03:01 -0700 Allen Wayne Best <[EMAIL PROTECTED]> wrote: > hello: > > i am getting the following message when the cron.hourly jobs are invoked. but > not on the daily or weekly. (a month has not passed, so i don't know if the > monthly run will have the problem.) > > inter

Re: crontab -e

2003-09-02 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 2 Sep 2003 09:18:12 -0500, Khademul Islam wrote: > I have setup crontab, using crontab -e to send some e-mail in a routine > basis. This is the error message I got today how I can fix it? > > >>> > & 9 > Message 9: > >From [EMAIL PROTECTE

Re: Crontab not running for MRTG

2003-07-24 Thread vijaya
Thanks i had mentioned the wrong user.. Its working fine now REgards, Vijaya On Thursday 24 July 2003 07:39 pm, Win Toe wrote: > pls put SHELL=/bin/bash or /bin/sh in crontab entries. > > crond should be running > > $ps ax | grep crond > > look carefully crond is running or not. If not runn

Re: Crontab not running for MRTG

2003-07-24 Thread Win Toe
pls put SHELL=/bin/bash or /bin/sh in crontab entries. crond should be running $ps ax | grep crond look carefully crond is running or not. If not running, use ntsysv(ass root user) and enable at default run level. or /etc/rc.d/init.d/crond restart to start manyally If possible, pls show ur cro

Re: Crontab - won't work -> SOLVED!

2003-07-18 Thread Együd Csaba
ay, July 17, 2003 6:43 PM Subject: Re: Crontab - won't work from crontab but from command line (???) > Every time I have had a probelm like this it ended up being a path > problem. Use fully qualified paths to all progs or set a PATH variable > in your script. > > B

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Bret Hughes
On Thu, 2003-07-17 at 18:57, Ian Mortimer wrote: > > You're missing something crucial, the _user_ to run > > the cron command as. Should be something like: > > > > * * * * * root /home/alumil/alumil_daily.sh > > Not in a crontab. Possibly you're thinking of an entry in /etc/cron.d > In a crontab

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Ian Mortimer
> You're missing something crucial, the _user_ to run > the cron command as. Should be something like: > > * * * * * root /home/alumil/alumil_daily.sh Not in a crontab. Possibly you're thinking of an entry in /etc/cron.d In a crontab the user who owns the crontab determines who the cron job run

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Michael Mansour
You're missing something crucial, the _user_ to run the cron command as. Should be something like: * * * * * root /home/alumil/alumil_daily.sh Michael. --- Ian Mortimer <[EMAIL PROTECTED]> wrote: > > > * * * * * /home/alumil/alumil_daily.sh > > Do you really want this to run every minute? > >

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Ian Mortimer
> * * * * * /home/alumil/alumil_daily.sh Do you really want this to run every minute? > When I run alumil_daily.sh from command line it creates the output file > properly. > Running it from crontab the generated output file is empty, as if the > database dump program > would not provide any outp

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Mark Neidorff
On Thu, 17 Jul 2003, [iso-8859-1] Együd Csaba wrote: > Hi All, > I have a problem with a crontab job. > > My shell script which I want to run every day is the following: > > -- > $ cat alumil_daily.sh >

Re: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Bret Hughes
On Thu, 2003-07-17 at 08:09, Együd Csaba wrote: > Hi All, > I have a problem with a crontab job. > > My shell script which I want to run every day is the following: > > -- > $ cat alumil_daily.sh > #!/bin/

RE: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Bob Buckley
Also check the root mail file for error messages. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Együd Csaba Sent: Thursday, July 17, 2003 8:10 AM To: redhat-list Subject: Crontab - won't work from crontab but from command line (???) Hi All, I have a probl

RE: Crontab - won't work from crontab but from command line (???)

2003-07-17 Thread Bob Buckley
check the shell type sh or bash... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Együd Csaba Sent: Thursday, July 17, 2003 8:10 AM To: redhat-list Subject: Crontab - won't work from crontab but from command line (???) Hi All, I have a problem with a cront

Re: Crontab issue

2003-03-08 Thread M.Lewis
Thanks Cameron, Ramesh, & Steve. I ended up putting in in a script. Mike On Saturday 08 March 2003 05:10, Cameron Simpson wrote: > On 03:18 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote: > | > Percents are special in Vixie cron crontabs. You need to slosh it: > | > > | > /bin/tar czvf /root/db

Re: Crontab issue

2003-03-08 Thread Ramesh .T.S
;Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 08, 2003 6:40 PM Subject: Re: Crontab issue > On 03:18 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote: > | > Percents are special in Vixie cron crontabs. You need to slosh it: > | &g

Re: Crontab issue

2003-03-08 Thread Cameron Simpson
On 03:18 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote: | > Percents are special in Vixie cron crontabs. You need to slosh it: | > | > /bin/tar czvf /root/dbman_back-`date '+\%m\%d\%Y\%H\%M'`-tar.gz | > /var/www/cgi-bin/dbman | > | > "man 5 crontab" says | > [...] Percent-signs (%) in t

RE: Crontab issue

2003-03-08 Thread Cowles, Steve
> -Original Message- > From: M.Lewis > Sent: Saturday, March 08, 2003 3:56 AM > Subject: Crontab issue > > > > If I run the following from the comman line, it works properly: > > /bin/tar czvf /root/dbman_back-`date '+%m%d%Y%H%M'`-tar.gz \ > > /var/www/cgi-bin/dbman >

Re: Crontab issue

2003-03-08 Thread M.Lewis
That didn't work Cameron. It gives me a file with the name of: dbman_back-\03\08\2003\03\14-tar.gz [snip] > Percents are special in Vixie cron crontabs. You need to slosh it: > > /bin/tar czvf /root/dbman_back-`date '+\%m\%d\%Y\%H\%M'`-tar.gz > /var/www/cgi-bin/dbman > > "man 5 cro

Re: Crontab issue

2003-03-08 Thread M.Lewis
Thanks Cameron. I'll give that a whirl. Mike On Saturday 08 March 2003 03:06, Cameron Simpson wrote: > On 01:55 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote: > | If I run the following from the comman line, it works properly: > | > | /bin/tar czvf /root/dbman_back-`date '+%m%d%Y%H%M'`-tar.gz \

Re: Crontab issue

2003-03-08 Thread Cameron Simpson
On 01:55 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote: | If I run the following from the comman line, it works properly: | | /bin/tar czvf /root/dbman_back-`date '+%m%d%Y%H%M'`-tar.gz \ | /var/www/cgi-bin/dbman | | However, it I put this in my crontab, I get the following: |

Re: crontab

2003-01-18 Thread Mark Neidorff
Aha! I just checked my system and now I understand the confusion (you didn't even know there was confusion). My version of linux has both cron and anacron installed. What you say is true for anacron, what I say is true for cron. For a long time, I couldn't figure out why my changes to cron usin

Re: crontab

2003-01-17 Thread Michael Fratoni
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 17 January 2003 05:21 am, Mark Neidorff wrote: > Check the man page. the -u will do another user's crontab. > If you edit one of the crontab files directly, it won't update cron. > On Wed, 15 Jan 2003, Jianping Zhu wrote: > > Thank you for

Re: crontab

2003-01-17 Thread Mark Neidorff
Check the man page. the -u will do another user's crontab. If you edit one of the crontab files directly, it won't update cron. Mark On Wed, 15 Jan 2003, Jianping Zhu wrote: > Thank you for response > i found we i use crontab -e, the file /var/spool/corn/root not > /etc/crontab is changed. ho

Re: crontab

2003-01-15 Thread Bret Hughes
On Wed, 2003-01-15 at 21:51, Jianping Zhu wrote: > Thank you for response > i found we i use crontab -e, the file /var/spool/corn/root not > /etc/crontab is changed. how can i change /etc/crontab? > Just use you favorite editor. The syntax is a little different. You must add the user name to ru

Re: crontab

2003-01-15 Thread Jianping Zhu
Thank you for response i found we i use crontab -e, the file /var/spool/corn/root not /etc/crontab is changed. how can i change /etc/crontab? Thanks On Wed, 15 Jan 2003, Mark Neidorff wrote: > On Wed, 15 Jan 2003, Jianping Zhu wrote: > > > > > when did systme call /ect/crontab? if i make cha

Re: crontab

2003-01-15 Thread Mark Neidorff
On Wed, 15 Jan 2003, Jianping Zhu wrote: > > when did systme call /ect/crontab? if i make change to /etc/crontab how > to let the change take effect? > Thanks Well, if you edit crontab with: #crontab -e then changes go into effect in a very short time. Cron reads its config file at the top

Re: crontab

2003-01-15 Thread David Busby
watch the cron log for a reload statement, takes no more than 5 minutes in my experience. Perhaps faster since cron does its thing at the top of every minute. /B - Original Message - From: "Jianping Zhu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 11:33

Re: crontab

2002-12-12 Thread Ben Russo
On Tue, 2002-12-10 at 21:18, Jianping Zhu wrote: > ect/crontab > > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > > # run-parts > 01 * * * * root run-parts /etc/cron.hourly > 02 4 * * * root run-oarts /etc/cron.daily > 22 4 *

RE: crontab

2002-12-10 Thread Cowles, Steve
> -Original Message- > From: Jianping Zhu > Sent: Tuesday, December 10, 2002 8:18 PM > Subject: crontab > > > ect/crontab > > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > > # run-parts > 01 * * * * root run-parts /

Re: crontab

2002-10-22 Thread Robert P. J. Day
On Tue, 22 Oct 2002, Rudolf Amirjanyan wrote: > Hello all. Can anybody tell me if it is recomended that root runs a > script through crontab. If no, then please say the reason. Thanks !!! that depends. do you mean you want to run a script just on behalf of the personal root user account, or as a

Re: crontab

2002-08-02 Thread Ed Wilts
On Fri, Aug 02, 2002 at 12:57:14PM -0600, Ashley M. Kirchner wrote: > > How does one schedule a crontab to run the last day of the month? > Considering that each month is different, one can't use '30' or '31' (or > 28/29), so...what to use? Untested...I did a google search for crontab "last

Re: crontab

2002-08-02 Thread Johannes Franken
* Ashley M. Kirchner <[EMAIL PROTECTED]> [2002-08-02 20:57 +0200]: > How does one schedule a crontab to run the last day of the month? have cron call »remind«, which can do *any* calendar calculation for you (e.g. "is it sunday after the first full moon in spring") and call external programs.

Re: crontab

2002-08-02 Thread Saul Arias
On Fri, 2002-08-02 at 14:57, Ashley M. Kirchner wrote: > How does one schedule a crontab to run the last day of the month? > Considering that each month is different, one can't use '30' or '31' (or > 28/29), so...what to use? I don't know, but I use this in a script to do different things if

Re: crontab

2002-05-27 Thread rpjday
On Mon, 27 May 2002, madhvi wrote: > > I have tried automating the backup of my files by scheduling the execution of >scripts ( I am using rcp to copy the files onto another fileserver). > > The problem encountered is :- > > I log in as root and issued the crontab -e command. Added the fol

Re: Crontab Entries

2002-03-28 Thread Javier Gostling
A better one would be: $ cd /var/spool/cron $ for i in *; do echo $i; cat $i; echo '='; done This would give you a complete list of crontab contents, tag who owns each entry and show where each crontab file ends. Cheers, -- Javier Gostling Ingeniero de Sistemas Virtualia S.A. [EMAIL PROTEC

SOLVED: Re: Crontab Entries

2002-03-28 Thread Jake McHenry
Thanks everyone, that makes things a lot easier for me. :-) At 08:33 AM 3/28/2002 -0500, you wrote: >Does anyone know of a way that I can view the crontab entries for all >users on the system, instead of doing crontab -u user -l for each user? > >Thanks, >Jake > > > >

Re: Crontab Entries

2002-03-28 Thread Rénald CASAGRAUDE
On jeudi, mars 28, 2002, at 02:33 , Jake McHenry wrote: > Does anyone know of a way that I can view the crontab entries > for all users on the system, instead of doing > crontab -u user -l for each user? Hi ! Try this as root : #!/bin/sh cat /etc/passwd | cut -d':' -f1 | while read username; d

Re: Crontab Entries

2002-03-28 Thread Ed . Greshko
On Thu, 28 Mar 2002, Jake McHenry wrote: > Does anyone know of a way that I can view the crontab entries for all users > on the system, instead of doing crontab -u user -l for each user? su cd /var/spool/cron cat * Ed ___ Redhat-list mailing lis

Re: Crontab Entries

2002-03-28 Thread Robert Dege
All active crontabs are store in the directory, /var/spool/cron & stored as files based on username. I suppose you can just more the contents of *, or something like that to make your job easier. -ROb On Thu, 2002-03-28 at 08:33, Jake McHenry wrote: > Does anyone know of a way that I can view t

Re: crontab and mail

2001-02-14 Thread A Brady
On Wednesday 14 February 2001 12:05, Kiran Kumar M opined: > Hi, > > The processing done by 'crontab' will sent to 'root' by mail. How can I > stop it. MAILTO="" -- To boldly go where I surely don't belong. ___ Redhat-list mailing list [EMAIL PROTE

Re: crontab and mail

2001-02-14 Thread Anthony E . Greene
On Wed, 14 Feb 2001 13:05:59 Kiran Kumar M wrote: >The processing done by 'crontab' will sent to 'root' by mail. How can I >stop it. Add this to the top of your crontab: MAILTO="" -- Anthony E. Greene <[EMAIL PROTECTED]> PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44

Re: crontab and mail

2001-02-14 Thread Matthew Melvin
On Wed, 14 Feb 2001 at 11:35pm (+0530), Kiran Kumar M wrote: > > Hi, > > The processing done by 'crontab' will sent to 'root' by mail. How can I > stop it. > At the head of your crontab file put something like.. [EMAIL PROTECTED] ... see crontab(5) for more details. M. -- WebCentral Pty Lt

Re: crontab and mail

2001-02-14 Thread Mike Burger
At the end of the cron task, ">> /dev/null 2>&1" minus the quote marks. On Wed, 14 Feb 2001, Kiran Kumar M wrote: > > Hi, > > The processing done by 'crontab' will sent to 'root' by mail. How can I > stop it. > > Thanks, > Kiran > > > > > ___ > Redhat-

RE: crontab -l

2001-01-26 Thread Rob Yale
Or, you could re-install the file 'crontab -u root /directoryname/filename' Rob > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Thierry ITTY > Sent: January 26, 2001 1:15 PM > To: [EMAIL PROTECTED] > Subject: Re: cron

Re: crontab -l

2001-01-26 Thread Thierry ITTY
A 10:57 26/01/2001 -0600, vous avez écrit : >During an upgrade from RedHat 5.2 to 7.0 I noticed something wrong with >cron. It doesn't work anymore. >When I do a crontab -l it tells me >no crontab for root. >The cron is still where I left it in /var/spool/cron/root >Has anyone come accross this pr

Re: crontab -l

2001-01-26 Thread Lorris J. Woods
I believe this means that there are no cron entries for root, you have to create them. On Fri, 26 Jan 2001, Tony Campisi wrote: > During an upgrade from RedHat 5.2 to 7.0 I noticed something wrong with > cron. It doesn't work anymore. > When I do a crontab -l it tells me > no crontab for root. >

Re: crontab editor

2000-09-21 Thread Eileen Orbell
opps typo.. sowyyy and thanks.. smile At 10:36 PM 9/21/2000 -0400, you wrote: >On Thu, Sep 21, 2000 at 10:35:15PM -0400, Eileen Orbell wrote: > > Hi, > > > > How can I change my default corntab editor from VI to Pico?? > >Corntabs, huh. ;) Put > > export EDITOR=pico > >in your environment s

Re: crontab editor

2000-09-21 Thread Hal Burgiss
On Thu, Sep 21, 2000 at 10:35:15PM -0400, Eileen Orbell wrote: > Hi, > > How can I change my default corntab editor from VI to Pico?? Corntabs, huh. ;) Put export EDITOR=pico in your environment somewhere, like .bash_profile if using bash. -- Hal B [EMAIL PROTECTED] [EMAIL PROTECTED] --

Re: crontab entry question

2000-08-22 Thread Bret Hughes
Uncle Meat wrote: > On 22-Aug-2000 [EMAIL PROTECTED] spoke something to the effect: > > > > If I change the command to > > > >/301 ** *root run-parts > > /etc/run.hourly > > > > Then this command will every half hour right ? > > You intuition about the form

Re: crontab entry question

2000-08-22 Thread David Kramer
On Tue, 22 Aug 2000 [EMAIL PROTECTED] wrote: > does the following crontab entry > 01 * * * * root run-parts /etc/run.hourly > read > run at 1 am everyday and month run-parts ? No, it says run every minute. > > The problem is I thought crontab entries were of the format > >Minute Hour Da

Re: crontab entry question

2000-08-22 Thread Vidiot
> >does the following crontab entry >01 * * * * root run-parts /etc/run.hourly >read >run at 1 am everyday and month run-parts ? > >The problem is I thought crontab entries were of the format > > Minute Hour DayOfMonth Month DayOfWeek Command >eg 0 1 ** *

Re: crontab error?

1999-12-06 Thread a mole
Hey Dave, percent signs are a special character in crontab so they need to be quoted. Cron is hitting the first % in your date command treating that as new line seperator. From the crontab(5) page: Percent-signs (%) in the command, unless escaped with backslash (\), will be c

RE: crontab error?

1999-12-06 Thread Jamie Smith
Title: RE: crontab error? I think that you need to have the date format string in quotes:    /u01/oracle/admin/prod/scripts/update.ora >    /u01/oracle/admin/prod/log/update.log.`date "+%m%d%y"` 2>&1 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

Re: crontab bug

1999-11-03 Thread Rob Napier
On Wed, Nov 03, 1999 at 06:49:39PM +, Darren Wyn Rees wrote: > On Wed, 3 Nov 1999 09:58:02 -0500, you wrote in > <[EMAIL PROTECTED]> : > > >Probably not. I just tried the same thing on my 6.0 with no trouble. > >Is this the only line in your crontab? You are editing crontab with > >'crontab -

Re: crontab bug

1999-11-03 Thread Darren Wyn Rees
On Wed, 3 Nov 1999 09:58:02 -0500, you wrote in <[EMAIL PROTECTED]> : >Probably not. I just tried the same thing on my 6.0 with no trouble. >Is this the only line in your crontab? You are editing crontab with >'crontab -e' correct? yes, it is the only line... i've also tried starting from scratc

RE: crontab help

1999-01-02 Thread Uncle Meat
On 05-Nov-99 Aaron Walker opined: > hello, > > does anyone know the format of crontab, or know where I can find such > info? I did have it in my Running Linux book, but it has been borrowed > out to a friend, so... man 5 crontab --- Start every day with a smile and get it over with. -- T

Re: crontab help

1999-01-02 Thread Charles Galpin
man 5 crontab will give you the format, but you might also fidn these two good reading man cron man crontab hth charle On Thu, 4 Nov 1999, Aaron Walker wrote: > hello, > > does anyone know the format of crontab, or know where I can find such > info? I did have it in my Running Linux book,

Re: crontab help

1999-01-02 Thread Julian Thomas
In <[EMAIL PROTECTED]>, on 11/04/99 at 07:01 PM, Aaron Walker <[EMAIL PROTECTED]> typed: >does anyone know the format of crontab, or know where I can find such >info? man 5 crontab -- Julian Thomas: [EMAIL PROTECTED] http://home.epix.net/~jt Boardmember of POSSI.org - Phoenix OS/2 S

RE: crontab -- scripts or command-line ?

1998-06-05 Thread David . LANDGREN
>The more traditional way (and, IMHO, best way) is to write a script, and >then >have crond kick off that script. ... and it makes things easier to test, because you can just run it from the command line as easy as pi. DL -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARC

Re: crontab -- scripts or command-line ?

1998-06-02 Thread Shawn McMahon
-Original Message- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> To: Redhat MailingList <[EMAIL PROTECTED]>; Linux MailingList <[EMAIL PROTECTED]> Date: Tuesday, June 02, 1998 12:24 PM Subject: crontab -- scripts or command-line ? > For example, I have to execute a 5-line > evaluation from

Re: crontab -- scripts or command-line ?

1998-06-02 Thread fugue
> > Hi, > I'm interested in a minor detail: in > crontab, what is the traditional way -- > to execute multi-line command, or just > create a script that does the same thing? > > For example, I have to execute a 5-line > evaluation from cron. Which way is >