View previous topic :: View next topic |
Author |
Message |
shanenin Guru
Joined: 28 Nov 2003 Posts: 578 Location: Rochester, MN U.S.A
|
Posted: Thu May 27, 2004 4:10 am Post subject: /etc/cron.weekly ? |
|
|
if I want to run my emerge sync weekly will this work? I placed this shell script into /etc/cron.weekly
Code: |
#! /bin/sh
emerge sync |
_________________ http://brighteyedcomputer.com |
|
Back to top |
|
|
nx12 Apprentice
Joined: 14 Jan 2004 Posts: 193
|
Posted: Thu May 27, 2004 6:01 am Post subject: |
|
|
The safest way to check is to put this in the cron.hourly. I'm sure the result willl be the same as in cron.weekly. _________________ signature sucks |
|
Back to top |
|
|
flyinspirit001 Apprentice
Joined: 25 May 2004 Posts: 266 Location: localhost,localdomain
|
Posted: Thu May 27, 2004 9:51 am Post subject: webmin |
|
|
if you want a web interface to manage your pc you can install webmin; from there you can manage easily also the crons if you need _________________ "Ride the infinity, be your best. For you, for all"
Dungeon01 - linux registered user #362502 |
|
Back to top |
|
|
gregcoit Tux's lil' helper
Joined: 12 Jun 2002 Posts: 101
|
Posted: Sun May 30, 2004 11:17 pm Post subject: Worthless |
|
|
How's that for 2 worthless replies.
The answer is yes, that's supposed to work (it's not for me but that's another story). Cron will then send the output (anything that would normally have been printed to the screen) to the users mail (or dead.letter file if local mail is not set p like most of us).
Hope this helps,
Greg _________________ "Life would be so much easier if we could see the source code" |
|
Back to top |
|
|
shanenin Guru
Joined: 28 Nov 2003 Posts: 578 Location: Rochester, MN U.S.A
|
Posted: Sun May 30, 2004 11:24 pm Post subject: |
|
|
thanks. I foulnd the dead letter at roots home directory. will the next cron job just replace the current dead letter or leave an other? _________________ http://brighteyedcomputer.com |
|
Back to top |
|
|
gregcoit Tux's lil' helper
Joined: 12 Jun 2002 Posts: 101
|
Posted: Mon May 31, 2004 12:31 am Post subject: dead.letter |
|
|
I'm pretty sure it appends the new stuff to the bottom of the file - it can get quite big over time if your cron jobs output lots of text (which an emerge sync will do).
Greg _________________ "Life would be so much easier if we could see the source code" |
|
Back to top |
|
|
tnt Veteran
Joined: 27 Feb 2004 Posts: 1222
|
Posted: Mon May 31, 2004 12:49 am Post subject: |
|
|
how to get rid of output?
|
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Mon May 31, 2004 12:54 am Post subject: |
|
|
I imagine just change it to
Code: | #! /bin/sh
emerge sync > /dev/null |
|
|
Back to top |
|
|
shanenin Guru
Joined: 28 Nov 2003 Posts: 578 Location: Rochester, MN U.S.A
|
Posted: Mon May 31, 2004 12:55 am Post subject: |
|
|
I like the output, this way I no what is happening, or not happening. _________________ http://brighteyedcomputer.com |
|
Back to top |
|
|
gregcoit Tux's lil' helper
Joined: 12 Jun 2002 Posts: 101
|
Posted: Mon May 31, 2004 12:57 am Post subject: |
|
|
I didn't know this but just found it via a "man 5 crontab":
Quote: | If MAILTO is defined but empty (MAILTO=""), no mail will be sent. |
That can be a line in your crontab file (the MAILTO="").
BTW - anybody know why "man crontab" and "man 5 crontab" are different (yeah, I did "man man" and didn't see the answer -or understand it).
Greg _________________ "Life would be so much easier if we could see the source code" |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Mon May 31, 2004 1:48 am Post subject: |
|
|
man 5 crontab gives you crontab(5); man crontab or man 1 crontab gives you crontab(1). Section 1 is for general commands, 5 is for config files. (2 is for kernel calls, 3 for libc calls, 4 for hardware info, 6 for games, 7 for system info, 8 for sbin commands and daemons). _________________ No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS? |
|
Back to top |
|
|
gregcoit Tux's lil' helper
Joined: 12 Jun 2002 Posts: 101
|
Posted: Mon May 31, 2004 1:56 am Post subject: |
|
|
ecatmur,
excellent info -thanks!!!!
Greg _________________ "Life would be so much easier if we could see the source code" |
|
Back to top |
|
|
|