Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/cron.weekly ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Thu May 27, 2004 4:10 am    Post subject: /etc/cron.weekly ? Reply with quote

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
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Thu May 27, 2004 6:01 am    Post subject: Reply with quote

The safest way to check is to put this in the cron.hourly. :D I'm sure the result willl be the same as in cron.weekly. :wink:
_________________
signature sucks
Back to top
View user's profile Send private message
flyinspirit001
Apprentice
Apprentice


Joined: 25 May 2004
Posts: 266
Location: localhost,localdomain

PostPosted: Thu May 27, 2004 9:51 am    Post subject: webmin Reply with quote

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
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Sun May 30, 2004 11:17 pm    Post subject: Worthless Reply with quote

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
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sun May 30, 2004 11:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 12:31 am    Post subject: dead.letter Reply with quote

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
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Mon May 31, 2004 12:49 am    Post subject: Reply with quote

how to get rid of output?

:roll:
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Mon May 31, 2004 12:54 am    Post subject: Reply with quote

I imagine just change it to

Code:
#! /bin/sh
emerge sync > /dev/null
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Mon May 31, 2004 12:55 am    Post subject: Reply with quote

I like the output, this way I no what is happening, or not happening.
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon May 31, 2004 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 1:56 am    Post subject: Reply with quote

ecatmur,

excellent info -thanks!!!!

Greg
_________________
"Life would be so much easier if we could see the source code"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum