Hi Thomas
The absolute path was the answer.
Your explanation has added to my limited knowledge :-)
Thanks
Clive
On 19/09/16 23:04, Thomas Schmitt wrote:
Hi,
Clive Menzies wrote:
rsync_opts="-av --exclude-from=exclude_list --delete --delete-excluded"
exclude_list=/root/uhuru_b
Hi,
Clive Menzies wrote:
> rsync_opts="-av --exclude-from=exclude_list --delete --delete-excluded"
> exclude_list=/root/uhuru_backup/exclude_list
> rsync: failed to open exclude file exclude_list: No such file or directory (2)
The decisive difference between dialog and cron could be t
On 19/09/16 22:10, Clive Menzies wrote:
It didn't find the exclude_list I created. I modified the script to
point to it but clearly the syntax is not right
# Good rsync options for uhuru_backups.
rsync_opts="-av --exclude-from=exclude_list --delete
--delete-excluded"
# exclude list locat
On 19/09/16 12:31, Thomas Schmitt wrote:
The classic remedy would be to set the missing variables inside the
cronjob script.
/root/uhuru_backup/uhuru.daily.sh
Consider to put some "echo" commands into the script and direct them to
a log file:
log_file=/tmp/uhuru_daily_sh.log
...
Hi,
> The daily backup script works fine when run manually as sudo but doesn't
> complete when run as a root cronjob.
The classic reason for this is difference in environment variables.
I.e. the cron job could die from a non set variable.
The classic remedy would be to set the missing variables
On Mon, 02 Jul 2012 15:07:46 +0100
Chris Davies wrote:
> Titanus Eramius wrote:
> > * 04 * * * /home/titanus/scripts/web-log >> /dev/null 2>&1
>
> > The line runs every morning at 4, and AFAIK, the /dev/-part should
> > redirect all but errors to null.
>
> No.
>
> 1. This runs every minute wh
On Mon, 2 Jul 2012 15:47:35 +0200
Titanus Eramius wrote:
> snip
>
> > # min hr dom mon dow command
> > > * 04 * * * /home/titanus/scripts/web-log >> /dev/null 2>&1
> >
> > That is, every minute during hour 4, on every day of every month
> > (that being every day of the week), the comma
Titanus Eramius wrote:
> * 04 * * * /home/titanus/scripts/web-log >> /dev/null 2>&1
> The line runs every morning at 4, and AFAIK, the /dev/-part should
> redirect all but errors to null.
No.
1. This runs every minute while the hour is 4. If you want the script
to run only a 4am, you need to sp
snip
> # min hr dom mon dow command
> > * 04 * * * /home/titanus/scripts/web-log >> /dev/null 2>&1
>
> That is, every minute during hour 4, on every day of every month (that
> being every day of the week), the command is run.
>
> Presumably, webalizer writes its output to the same place
On Mon, Jul 02, 2012 at 02:51:06PM +0200, Titanus Eramius wrote:
> Hi folks
> On my webserver I've recently added a log-sorting and presentation
> program by the name of Webalizer. To make it run, I've put this line in
> the crontab (everything runs as a normal user):
>
> * 04 * * * /home/titanus/
Bob Proulx:
> Jochen Spieker wrote:
>> Bob Proulx:
>>>
>>> Having a literal '~/' in there works for bash. But it doesn't work
>>> for /bin/sh linked to dash for example.
>>
>> Works here:
… snip
> But that doesn't have anything to do with PATH. You didn't test PATH
> containing "~/" in it. You
Bob Proulx wrote:
> Jochen Spieker wrote:
> > Bob Proulx:
> > > Having a literal '~/' in there works for bash. But it doesn't work
> > > for /bin/sh linked to dash for example.
> >
> > Works here:
> >
> > $ exec /bin/dash
> > $ cd /
> > $ pwd
> > /
> > $ cd ~
> > $ pwd
> > /home/jrschulz
>
> Bu
Jochen Spieker wrote:
> Bob Proulx:
> > Having a literal '~/' in there works for bash. But it doesn't work
> > for /bin/sh linked to dash for example.
>
> Works here:
>
> $ exec /bin/dash
> $ cd /
> $ pwd
> /
> $ cd ~
> $ pwd
> /home/jrschulz
But that doesn't have anything to do with PATH. You
Bob Proulx:
> Jochen Spieker wrote:
>>
>> You still can use
>>
>> PATH = "~/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
>>
>> if the crontab belongs to the user 'rwp'.
>
> Having a literal '~/' in there works for bash. But it doesn't work
> for /bin/sh linked to dash for example.
Works here:
Bob Proulx wrote:
> Jochen Spieker wrote:
> > Bob Proulx:
> > > # The default vixie-cron PATH is "/usr/bin:/bin", overriding the
> > > environment.
> > > PATH = "/home/rwp/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
> >
> > You still can use
> >
> > PATH = "~/bin:/usr/local/bin:/usr/bin:/bi
Jochen Spieker wrote:
> Bob Proulx:
> > # The default vixie-cron PATH is "/usr/bin:/bin", overriding the
> > environment.
> > PATH = "/home/rwp/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
>
> You still can use
>
> PATH = "~/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
>
> if the crontab be
Bob Proulx:
>
> # The default vixie-cron PATH is "/usr/bin:/bin", overriding the
> environment.
> PATH = "/home/rwp/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
You still can use
PATH = "~/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
if the crontab belongs to the user 'rwp'.
J.
--
Nothin
Jochen Spieker wrote:
> But beware that you probably need to use /full/path/to/my-script. $PATH
> is probably not what you expect.
Debian uses Vixie Cron which has some nice extensions, such as that
"*/10" you were using. It also allows you to set PATH for all of your
cron commands. I always hav
Darac Marjal a écrit :
On Thu, Dec 01, 2011 at 12:19:06PM +0100, Jochen Spieker wrote:
Nicolas Bercher:
I'd like use set up a crontab rule from 6 am to midnight, and crontab(5)
mentions:
field allowed values
hour 0-23
Then, I tried something like:
*/10 6-0 * * 1-5 my-
On Thu, Dec 01, 2011 at 12:19:06PM +0100, Jochen Spieker wrote:
> Nicolas Bercher:
> >
> > I'd like use set up a crontab rule from 6 am to midnight, and crontab(5)
> > mentions:
> > field allowed values
> > hour 0-23
> >
> > Then, I tried something like:
> > */10 6-0 * *
Nicolas Bercher:
>
> I'd like use set up a crontab rule from 6 am to midnight, and crontab(5)
> mentions:
> field allowed values
> hour 0-23
>
> Then, I tried something like:
> */10 6-0 * * 1-5 my-script
Using this, cron should execute my-script on 06:10, 06:20 … 23:50,
On Sun, 2011-09-18 at 15:17 -0600, Bob Proulx wrote:
> Steven wrote:
> > I manage several Debian servers (etch and squeeze), not related to one
> > another, and they all have some crontab jobs scheduled such as backup
> > scripts. When these cronjobs are run, the output is e-mailed to the
> > loca
On Sun, 2011-09-18 at 22:43 +0200, Juan Sierra Pons wrote:
> Hi,
>
> Yes, it can be done configuring Exim to send emails to external
> domains using a smarthost.
Excellent.
>
> 1.- Configure properly /etc/aliases and add a default user to receive
> emails. For example
>
[...]
> 2.- Configure e
Steven wrote:
> I manage several Debian servers (etch and squeeze), not related to one
> another, and they all have some crontab jobs scheduled such as backup
> scripts. When these cronjobs are run, the output is e-mailed to the
> local admin account on the system. Is it possible to configure these
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 18/09/11 21:43, Juan Sierra Pons wrote:
> Hi,
>
> Yes, it can be done configuring Exim to send emails to external
> domains using a smarthost.
hello
yee but to just send admin emails nullmailer is enough and the easiest
to confiugre from any soft
Hi,
Yes, it can be done configuring Exim to send emails to external
domains using a smarthost.
1.- Configure properly /etc/aliases and add a default user to receive
emails. For example
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
On Sun, Jan 24, 2010 at 01:00:13PM +, Anthony Campbell wrote:
> /var/spool/cron/crontabs/ac: Permission denied
The crontabs directory should be owned by root:crontab, not root:root.
> I don't have any such file in /tmp.
Nor should you. /usr/bin/crontab works like sudoedit, and uses temp
fi
Anthony Campbell wrote:
I get an error when running crontab as user:
/var/spool/cron/crontabs/ac: Permission denied
Googling shows a few people with a similar problem but either no
solution or one that doesn't work here (crontab not having setguid or
not in the crontab group).
The permissions
On 24 Jan 2010, Anthony Campbell wrote:
Sorry to follow-up to myself but I solved the problem simply by
reinstalling cron. I don't know what had happened previously but anyway
it's now working correctly.
Anthony
--
Anthony Campbell - a...@acampbell.org.uk
Microsoft-free zone - Using Debian GNU
On Friday 20 March 2009 11:05:05 hadi motamedi wrote:
>45 1 * * * find /usr/local/statsvr/counters/main/processed -atime +60 -exec
>rm -f {} ';'
>Can you please let us know what is the meaning of "-atime" & "-exec"
>commands used here ?
"-atime" filters the find results based on the last-access ti
On Fri, 20 Mar 2009 09:05:05 -0700, hadi motamedi wrote:
> We have
> received the following instruction command to be set as crontab job for
> root user, as the followings :
> 45 1 * * * find /usr/local/statsvr/counters/main/processed -atime +60
> -exec rm -f {} ';'
> Can you please let us know w
When the date was Tuesday 10 February 2009, Jordi Moles Blanco wrote:
> I'm having a problem trying to execute the "crontab" command from a perl
> script.
>
> When i call this command from the SNMP system, i get this:
>
> "must be privileged to use -u"
>
> the procedure is...
>
> 1. i create a cro
* Daniel Campbell-Macdonald ([EMAIL PROTECTED]) [28.07.08 21:49]:
> HI list
> I am new to Debian and I am having trouble with crontab- I can't for the
> life of me seem to figure out how to get it to send me an email.
> I did the crontab - e thing and
> set up something like the following
>
> [EM
On 11/26/07, Jan <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I've just installed a system with Debian Etch 4.0 and the crontabs which are
> edited by users will not be executed.
>
> The cronjobs added by the root user, "crontab -e" will are executed as
> expected. Jobs added by a regular user, also usin
On Mon, Nov 26, 2007 at 08:14:36PM +0100, Jan wrote:
[cron not executing user crontabs]
> Any ideas? Help will be greatly appreciated.
Did you have a look at the logs?
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
signature.asc
Desc
Jan([EMAIL PROTECTED]) is reported to have said:
> Hi!
>
> I've just installed a system with Debian Etch 4.0 and the crontabs which are
> edited by users will not be executed.
>
> The cronjobs added by the root user, "crontab -e" will are executed as
> expected. Jobs added by a regular user, al
On Wed, Sep 05, 2007 at 10:43:16AM -0500, Ron Johnson wrote:
> On 09/03/07 19:46, Douglas A. Tutty wrote:
> > On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
> >> I have a new install of Etch. When I issue the command
> >> #crontab -e
> >> I get the nano editor. I would really rather us
On Wed, 5 Sep 2007, Maarten Verwijs wrote:
On Mon, Sep 03, 2007 at 05:38:03PM -0700, Raquel wrote:
On Tue, 04 Sep 2007 02:24:16 +0200
Mathias Brodala <[EMAIL PROTECTED]> wrote:
Hmmm, I thought it was configured using the update-alternatives
system. However, when I run (as root):
#update-alte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 09/03/07 19:46, Douglas A. Tutty wrote:
> On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
>> I have a new install of Etch. When I issue the command
>> #crontab -e
>> I get the nano editor. I would really rather use the vim editor.
>> Ho
On Mon, Sep 03, 2007 at 05:38:03PM -0700, Raquel wrote:
> On Tue, 04 Sep 2007 02:24:16 +0200
> Mathias Brodala <[EMAIL PROTECTED]> wrote:
> Hmmm, I thought it was configured using the update-alternatives
> system. However, when I run (as root):
> #update-alternatives --set editor /usr/bin/vim
>
On Mon, 3 Sep 2007 17:38:03 -0700
Raquel <[EMAIL PROTECTED]> wrote:
> Hmmm, I thought it was configured using the update-alternatives
> system. However, when I run (as root):
> #update-alternatives --set editor /usr/bin/vim
> I get an error:
> #update-alternatives: Cannot find alternative `/u
On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
> I have a new install of Etch. When I issue the command
> #crontab -e
> I get the nano editor. I would really rather use the vim editor.
> How do I change what gets used?
Do you have an EDITOR environment variable set? The man page say
On Tue, 4 Sep 2007 02:32:39 +0200
"Jan C. Nordholz" <[EMAIL PROTECTED]> wrote:
> > Raquel, 04.09.2007 02:22:
> > > I have a new install of Etch. When I issue the command
> > > #crontab -e
> > > I get the nano editor. I would really rather use the vim
> > > editor. How do I change what gets us
On Tue, 04 Sep 2007 02:24:16 +0200
Mathias Brodala <[EMAIL PROTECTED]> wrote:
> Hi Raquel.
>
> Raquel, 04.09.2007 02:22:
> > I have a new install of Etch. When I issue the command
> > #crontab -e
> > I get the nano editor. I would really rather use the vim
> > editor. How do I change what ge
> Raquel, 04.09.2007 02:22:
> > I have a new install of Etch. When I issue the command
> > #crontab -e
> > I get the nano editor. I would really rather use the vim editor.
> > How do I change what gets used?
>
> Set the EDITOR environment variable in the config file of your preferred
> shell
Hi Raquel.
Raquel, 04.09.2007 02:22:
> I have a new install of Etch. When I issue the command
> #crontab -e
> I get the nano editor. I would really rather use the vim editor.
> How do I change what gets used?
Set the EDITOR environment variable in the config file of your preferred shell.
(~/
Am 2006-12-07 22:34:06, schrieb Grok Mogger:
> I tried doing something like this in the system wide crontab
> (/etc/crontab) and I was disappointed to find that it didn't
> work. It seems like the job just never ran at all. Can anyone
> tell me what might have happened?
>
> (This is of course
On Sat, Dec 09, 2006 at 09:18:48PM -0600, W Paul Mills wrote:
> Ken Irving wrote:
> > On Sat, Dec 09, 2006 at 08:13:22PM -0500, Bill Marcum wrote:
> >> The % sign has a special meaning in crontabs. Change it to \%.
> >
> > I don't see any hint of that in crontab(1) or cron(8), but I do see
> > s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ken Irving wrote:
> On Sat, Dec 09, 2006 at 08:13:22PM -0500, Bill Marcum wrote:
>> On Thu, Dec 07, 2006 at 10:34:06PM -0500, Grok Mogger wrote:
>>> I tried doing something like this in the system wide crontab
>>> (/etc/crontab) and I was disappointed
On Sat, Dec 09, 2006 at 08:13:22PM -0500, Bill Marcum wrote:
> On Thu, Dec 07, 2006 at 10:34:06PM -0500, Grok Mogger wrote:
> > I tried doing something like this in the system wide crontab
> > (/etc/crontab) and I was disappointed to find that it didn't
> > work. It seems like the job just never
On Thu, Dec 07, 2006 at 10:34:06PM -0500, Grok Mogger wrote:
> I tried doing something like this in the system wide crontab
> (/etc/crontab) and I was disappointed to find that it didn't
> work. It seems like the job just never ran at all. Can anyone
> tell me what might have happened?
>
> (T
Russell L. Harris wrote:
* Grok Mogger <[EMAIL PROTECTED]> [061207 21:39]:
I tried doing something like this in the system wide crontab
(/etc/crontab) and I was disappointed to find that it didn't
work. It seems like the job just never ran at all. Can anyone
tell me what might have happened?
* Grok Mogger <[EMAIL PROTECTED]> [061207 21:39]:
> I tried doing something like this in the system wide crontab
> (/etc/crontab) and I was disappointed to find that it didn't
> work. It seems like the job just never ran at all. Can anyone
> tell me what might have happened?
>
> (This is of c
On Sat, Jul 01, 2006 at 08:46:33PM +0200, Dimitar Vukman wrote:
> On Sat, 1 Jul 2006 11:36:18 -0700
> Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
>
> > no i haven't, but its solved. My /usr/bin/crontab had the wrong
> > permissions -- it was owner:group root:root instead of root:crontab
> > w
On Sat, 1 Jul 2006 11:36:18 -0700
Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> no i haven't, but its solved. My /usr/bin/crontab had the wrong
> permissions -- it was owner:group root:root instead of root:crontab
> with gid. that's fixed now and it works whether I am in the crontab
> group o
On Sat, Jul 01, 2006 at 07:56:53PM +0200, Dimitar Vukman wrote:
> On Sat, 1 Jul 2006 10:33:31 -0700
> Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
>
> > hmm... that doesn't do it., but I'm not in the crontab group, are you?
>
> Neithere am I.
> Have you tried deleting the /var/spool/crontabs
On Sat, Jul 01, 2006 at 10:12:50AM -0800, Ken Irving wrote:
> On Sat, Jul 01, 2006 at 10:33:31AM -0700, Andrew Sackville-West wrote:
> > On Sat, Jul 01, 2006 at 06:39:17PM +0200, Dimitar Vukman wrote:
> > > Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> > >
> > > > can someone provide their pe
On Sat, Jul 01, 2006 at 08:02:58PM +0200, Dimitar Vukman wrote:
> On Sat, 1 Jul 2006 10:33:31 -0700
> Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
>
>
> > hmm... that doesn't do it., but I'm not in the crontab group, are you?
> > It seems strange that a file would have an owner that is not in
On Sat, Jul 01, 2006 at 10:33:31AM -0700, Andrew Sackville-West wrote:
> On Sat, Jul 01, 2006 at 06:39:17PM +0200, Dimitar Vukman wrote:
> > Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> >
> > > can someone provide their permissions, group and owner settings or
> > > perhaps some other insigh
On Sat, 1 Jul 2006 10:33:31 -0700
Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> hmm... that doesn't do it., but I'm not in the crontab group, are you?
> It seems strange that a file would have an owner that is not in the
> same group as the file's group.
I've got an idea. What are your per
On Sat, 1 Jul 2006 10:33:31 -0700
Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> hmm... that doesn't do it., but I'm not in the crontab group, are you?
Neithere am I.
Have you tried deleting the /var/spool/crontabs/* ?
--
"Infinite Love Is The Only Truth, Everything Else Is Illusion!"
On Sat, Jul 01, 2006 at 06:39:17PM +0200, Dimitar Vukman wrote:
> On Sat, 1 Jul 2006 09:27:39 -0700
> Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
>
> > can someone provide their permissions, group and owner settings or
> > perhaps some other insight?
> >
> > A
>
>
> [06:38 PM Sat Jul [EMAI
On Sat, 1 Jul 2006 09:27:39 -0700
Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> can someone provide their permissions, group and owner settings or
> perhaps some other insight?
>
> A
[06:38 PM Sat Jul [EMAIL PROTECTED]:/var/spool/cron/crontabs
# ls -al
total 12
drwx-wx--T 2 root crontab 4
Hi.
I've checked all except one thing.
3. Do your crontabs end with a blank line?
And i'll be damned :-) it did solve the problem. haha
Wierd though. When i enter the crontab there was a blank line. i deleted it
and hit enter twice and it worked.
Thank you very much mate.
Time to convert all /
On Tue, Aug 16, 2005 at 11:29:56AM +0200, Phantazm wrote:
> Aas i said really wierd :-)
> everything looks ok.
Yes, it looks ok (at least from my not too knowledgeable viewpoint).
Please remind me: does the crontab work for root?
Then I can only say: look at the man page for crontab, which brings
Hi.
Aas i said really wierd :-)
everything looks ok.
camelot:~# echo ls | at now
warning: commands will be executed using /bin/sh
job 1 at 2005-08-16 11:23
camelot:~# ls -l /var/spool/cron/
total 0
drwx-- 2 daemon daemon 17 2005-08-16 11:23 atjobs
drwx-- 2 d
On Tue, Aug 16, 2005 at 09:25:50AM +0200, Phantazm wrote:
> I cant get user crontabs to work.
>
> cron is running
> crontab -l gives correct output.
> EVERYTHING looks fine. I've must have missed something.
Does the 'at' command work? It does something similar and also uses
the cron daemon, as f
Hello,
try this*/5 * * *
for other exsamples see "man 5 crontab"
Bye
Lance Hoffmeyer schrieb:
Hello,
How do I get crontab to run a process every 5 minutes?
Currently, it is setup as:
5,10,15,20,25,30,35,40,45,50,55 * * *
Surely, there is a more elegant approach?
Lance
--
To UNSUBSCRIBE,
Lance Hoffmeyer wrote:
Hello,
How do I get crontab to run a process every 5 minutes?
Currently, it is setup as:
5,10,15,20,25,30,35,40,45,50,55 * * *
Surely, there is a more elegant approach?
Lance
if you use the notation
*/5 * * * *
then it will run every five minutes, but not always on the 5 (i
In article <[EMAIL PROTECTED]>,
Joao Clemente <[EMAIL PROTECTED]> wrote:
>Now, I must wonder: Is there a way to "shift" this by a wanted value?
>(for instance, when x MOD y = 1, something like putting into cron the
>instance (*/5)+1 ? It would run at 1,6,11,16,21, ... Is it possible?
Perhaps 1
> Sorry to post over your answer, but Andreas, this is not correct: you
> should have written
> */5
> or
> 0-59/5
>
> (every 5 minutes... your versions was "every 12 minutes". The '/' is not
> "divide the time into y parts" but "every time 'x MOD y = 0' then run")
Indeed, I got that wrong.
Adam
Andreas wrote:
On Thu, Dec 23, 2004 at 08:02:55PM -0600, Lance Hoffmeyer wrote:
Hello,
How do I get crontab to run a process every 5 minutes?
Currently, it is setup as:
5,10,15,20,25,30,35,40,45,50,55 * * *
Surely, there is a more elegant approach?
Lance
sure
*/12 * * * *
or
0-59/12 * * * *
shoul
Andreas wrote:
> On Thu, Dec 23, 2004 at 08:02:55PM -0600, Lance Hoffmeyer wrote:
>> How do I get crontab to run a process every 5 minutes?
>> Currently, it is setup as:
>> 5,10,15,20,25,30,35,40,45,50,55 * * *
>>
>> Surely, there is a more elegant approach?
> sure
>
> */12 * * * *
> or
> 0-59/
On Thu, Dec 23, 2004 at 08:02:55PM -0600, Lance Hoffmeyer wrote:
> Hello,
>
> How do I get crontab to run a process every 5 minutes?
> Currently, it is setup as:
> 5,10,15,20,25,30,35,40,45,50,55 * * *
>
> Surely, there is a more elegant approach?
>
> Lance
sure
*/12 * * * *
or
0-59/12 * * *
On Thu, 2004-12-23 at 20:02 -0600, Lance Hoffmeyer wrote:
> Hello,
>
> How do I get crontab to run a process every 5 minutes?
> Currently, it is setup as:
> 5,10,15,20,25,30,35,40,45,50,55 * * *
>
> Surely, there is a more elegant approach?
Yes, yes there is.
$ man crontab
SEE ALSO
Just noticed with the example below, there would be a 10 minute gap
between 55 & 5 (need 0,5,10,[...],55)
Lance Hoffmeyer wrote:
Hello,
How do I get crontab to run a process every 5 minutes?
Currently, it is setup as:
5,10,15,20,25,30,35,40,45,50,55 * * *
Surely, there is a more elegant approac
*/5 * * *
Lance Hoffmeyer wrote:
Hello,
How do I get crontab to run a process every 5 minutes?
Currently, it is setup as:
5,10,15,20,25,30,35,40,45,50,55 * * *
Surely, there is a more elegant approach?
Lance
smime.p7s
Description: S/MIME Cryptographic Signature
On Sat, Dec 18, 2004 at 02:17:19AM +1100, Sam Watkins wrote..
> On Mon, Dec 20, 2004 at 06:54:01AM -0500, Kevin Coyner wrote:
> >/usr/bin/br: error: [Input/output error] ioctl
>
> if you're not sure what user it's running as, try running "whoami" in
> the crontab. although if it's root
On Mon, Dec 20, 2004 at 06:54:01AM -0500, Kevin Coyner wrote:
>/usr/bin/br: error: [Input/output error] ioctl
if you're not sure what user it's running as, try running "whoami" in
the crontab. although if it's root's crontab it should definitely be
running as root.
I assume if you run this p
On Sun, Dec 19, 2004 at 08:48:46PM -0800, Steve Lamb wrote..
> Kevin Coyner wrote:
> >Is root restricted when it comes to serial port commands?
>
> It is if the commands are not in the path given to crontab and the
> command didn't have an explicit path. IIRC crontab has a very
>
On Sun, 19 Dec 2004 23:38:07 -0500, Kevin Coyner <[EMAIL PROTECTED]> wrote:
>
> When I create a crontab and it runs, what uid/gid does it run with?
>
> I presume it's the uid of the user that has the crontab. But I've run
> into a situation recently where root wasn't able to run a program from i
Kevin Coyner wrote:
Is root restricted when it comes to serial port commands?
It is if the commands are not in the path given to crontab and the
command didn't have an explicit path. IIRC crontab has a very limited path by
default. Gust a guess without more information What was the exact e
On Fri, Jul 16, 2004 at 05:16:08PM -0400 or thereabouts, Nori Heikkinen wrote:
> on Fri, 16 Jul 2004 04:44:59PM -0400, Ryan Waye insinuated:
> > Hello:
> > I have been having crontab report my exit statuses of backups
> > for some time now(they were the only thing there). But now that
> > I ha
on Fri, 16 Jul 2004 04:44:59PM -0400, Ryan Waye insinuated:
> Hello:
> I have been having crontab report my exit statuses of backups
> for some time now(they were the only thing there). But now that
> I have getmail on the crontab, this is quickly flooding my
> mailbox. It has been a while,
On Wed, Apr 14, 2004 at 01:35:13PM -0400, Rick Pasotto wrote:
> if [ $(date -d tomorrow '+%m') -ne $(date '+%m') ]
> then
> echo 'today is the last day of the month'
> fi
[ $(date -d tomorrow '+%d') -eq 1 ] && echo 'last of the month'
This can also be done directly in your crontab:
[ $(dat
* s. keeling <[EMAIL PROTECTED]> [2004-04-14 09:58:38 -0600]:
> Another way is to run it every day, but have the script figure out if
> it's the last day of the month, and exit if not.
Or even better: run it on the 28th-31st day of each calendar month and
then have the script figure out if it's th
On Wed, Apr 14, 2004 at 09:58:38AM -0600, s. keeling wrote:
> Incoming from Wayne Topa:
> > Rus Foster([EMAIL PROTECTED]) is reported to have said:
> > > Hi All,
> > > Couldn't find a decent answer to this in google but goes as follows
> > >
> > > If I have a cron job that is scheduled for the 31s
Incoming from Wayne Topa:
> Rus Foster([EMAIL PROTECTED]) is reported to have said:
> > Hi All,
> > Couldn't find a decent answer to this in google but goes as follows
> >
> > If I have a cron job that is scheduled for the 31st of the month and the
> > month we are in doesn't have 31 days would it
Rus Foster([EMAIL PROTECTED]) is reported to have said:
> Hi All,
> Couldn't find a decent answer to this in google but goes as follows
>
> If I have a cron job that is scheduled for the 31st of the month and the
> month we are in doesn't have 31 days would it be run on the last day of
> the month
Isaac Claymore wrote:
WEEK_DAY=`date +\%A`
30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases >
/backup/alldb-${WEEK_DAY}.sql; umount /backup
It's been working on RH system, but the Debian cron keeps refusing to do command
expansion on WEEK_DAY, i.e. the script produces a fi
On Mon, Apr 12, 2004 at 09:57:18AM -0500, Dave Sherohman wrote:
> On Wed, Apr 07, 2004 at 10:34:06AM +0800, Isaac Claymore wrote:
> > WEEK_DAY=`date +\%A`
> > 30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases >
> > /backup/alldb-${WEEK_DAY}.sql; umount /backup
> >
> > It's
On Wed, Apr 07, 2004 at 10:34:06AM +0800, Isaac Claymore wrote:
> WEEK_DAY=`date +\%A`
> 30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases >
> /backup/alldb-${WEEK_DAY}.sql; umount /backup
>
> It's been working on RH system, but the Debian cron keeps refusing to do command
On Fri, Mar 19, 2004 at 07:17:22AM +, Alan Chandler wrote:
>
> Just a thought - do you have anacron installed. Its a while since I have,
> but I have this feeling that it simulates the running of cron and therefore
> its the times in /etc/anacrontab that matter
>
No, anacron is not instal
On Tuesday 16 March 2004 15:30, Nitebirdz wrote:
> On Tue, Mar 16, 2004 at 10:59:18AM +0100, Andreas Janssen wrote:
> > IIRC, if you edit user crontabs, you have to leave away the user field.
> > The jobs will be run under the ID the crontab belongs to. If you use
> > vixie cron, the user field is
Once upon a time Nitebirdz said...
>
> These are the lines I added to the "/etc/crontab" file:
>
> * * * * * root /bin/date > /tmp/date_crontab
> * * * * * root /bin/date -u > /tmp/date2_crontab
>
> The output was, in that order:
>
> Thu Mar 18 20:59:01 CST 2004
> Fri Mar 19 02:59:01 UTC 2004
>
On Thu, Mar 18, 2004 at 10:16:29PM +0100, Martin Dickopp wrote:
>
> What happens if you specify `* * * * *' (i.e. every minute) as time
> specification?
>
Well, now that seems to work. I added that entry via 'crontab -e' and it
did work. After that, I also tried some partial times, such as "41
Nitebirdz <[EMAIL PROTECTED]> writes:
> I just did this by su'ing as user "jortega" and running 'crontab -e' to
> enter the following lines:
>
> 35 20 * * * /bin/echo "testing" > /tmp/testing
> 35 20 * * * /bin/date > /tmp/time
What happens if you specify `* * * * *' (i.e. every minute) as time
s
On Tue, Mar 16, 2004 at 06:37:48PM +0100, Martin Dickopp wrote:
>
> - Could it be that you have accidentally embedded an invisible control
> character in the file?
>
I just checked by doing a ":set list" from within 'vi', and everything
looked normla.
> - Is there a newline character after th
Nitebirdz <[EMAIL PROTECTED]> writes:
> On Tue, Mar 16, 2004 at 04:56:05PM +0100, Martin Dickopp wrote:
>>
>> You want to run `mkreport.deb' at 1:00am, and if the timezone in your
>> email header is correct, you appear to be 6 hours western of GMT. This
>> means that it is 1:00am GMT when it is 7
On Tue, Mar 16, 2004 at 04:56:05PM +0100, Martin Dickopp wrote:
>
> You want to run `mkreport.deb' at 1:00am, and if the timezone in your
> email header is correct, you appear to be 6 hours western of GMT. This
> means that it is 1:00am GMT when it is 7:00pm of your local time. Therefore,
> presum
1 - 100 of 204 matches
Mail list logo