PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Empty crontab
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Empty crontab

Réponse
 
LinkBack Outils de la discussion
Vieux 10/03/2007, 11h50   #1
Marko Randjelovic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Empty crontab

I see tasks from directories /etc/cron.* are ran regulary, but when I
run "crontab -e" as root, the file is empty. Where are these tasks
schedualed? I am asking because I want to know at what time of the day
are tasks from cron.daily ran and how to change it.

Thanks.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 10/03/2007, 12h00   #2
Franck Joncourt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

On Sat, Mar 10, 2007 at 12:49:19PM +0100, Marko Randjelovic wrote:
> I see tasks from directories /etc/cron.* are ran regulary, but when I
> run "crontab -e" as root, the file is empty. Where are these tasks
> schedualed? I am asking because I want to know at what time of the day
> are tasks from cron.daily ran and how to change it.


If I am not mistaken crontab -e edits root's crontab, however, according
to me, you are looking for /etc/crontab, aren't you ?

--
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8pwvxJBTTnXAif4RApqMAKCWNyye9xr18q+7UrbDmb UKSV4+/wCePvum
JzPvrEg/QEMUWAvSkQBte7E=
=KLjF
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 10/03/2007, 12h20   #3
Marko Randjelovic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

Franck Joncourt wrote:
> On Sat, Mar 10, 2007 at 12:49:19PM +0100, Marko Randjelovic wrote:
>
>> I see tasks from directories /etc/cron.* are ran regulary, but when I
>> run "crontab -e" as root, the file is empty. Where are these tasks
>> schedualed? I am asking because I want to know at what time of the day
>> are tasks from cron.daily ran and how to change it.
>>

>
> If I am not mistaken crontab -e edits root's crontab, however, according
> to me, you are looking for /etc/crontab, aren't you ?
>
>

I thaught root's crontab is /etc/crontab. Thanks. Which command then to
run to edit this file (sometime ago I read it is not recommended to edit
it directly)?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 10/03/2007, 12h40   #4
Cédric Lucantis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

> >> I see tasks from directories /etc/cron.* are ran regulary, but when I
> >> run "crontab -e" as root, the file is empty. Where are these tasks
> >> schedualed? I am asking because I want to know at what time of the day
> >> are tasks from cron.daily ran and how to change it.

> >
> > If I am not mistaken crontab -e edits root's crontab, however, according
> > to me, you are looking for /etc/crontab, aren't you ?

>
> I thaught root's crontab is /etc/crontab. Thanks. Which command then to
> run to edit this file (sometime ago I read it is not recommended to edit
> it directly)?


You can edit it with any editor. If I remember well, this restriction exists
on other systems but Debian is not concerned.

--
Cédric Lucantis
  Réponse avec citation
Vieux 10/03/2007, 12h40   #5
Franck Joncourt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

On Sat, Mar 10, 2007 at 01:15:18PM +0100, Marko Randjelovic wrote:
> Franck Joncourt wrote:
> >On Sat, Mar 10, 2007 at 12:49:19PM +0100, Marko Randjelovic wrote:
> >
> >>I see tasks from directories /etc/cron.* are ran regulary, but when I
> >>run "crontab -e" as root, the file is empty. Where are these tasks
> >>schedualed? I am asking because I want to know at what time of the day
> >>are tasks from cron.daily ran and how to change it.
> >>

> >
> >If I am not mistaken crontab -e edits root's crontab, however, according
> >to me, you are looking for /etc/crontab, aren't you ?
> >
> >

> I thaught root's crontab is /etc/crontab. Thanks. Which command then to
> run to edit this file (sometime ago I read it is not recommended to edit
> it directly)?
>


Looking at /etc/crontab you can see when cron.hourly and its friends
start. I think if you want to add some tasks for the root user, you can
add them to /etc/cron.d, /etc/cron.hourly ... according to your needs. I
would do this way.

--
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8qbDxJBTTnXAif4RAmngAKCCn7rhlvQqi1KfFyxH7o iUdLGd+wCgmiCN
AP/FuBUxw6we+nvk0DXNIoc=
=36eB
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 10/03/2007, 13h00   #6
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

Marko Randjelovic <marel@sbb.co.yu> wrote:

> > If I am not mistaken crontab -e edits root's crontab, however,
> > according to me, you are looking for /etc/crontab, aren't you ?
> >
> >

> I thaught root's crontab is /etc/crontab. Thanks. Which command then
> to run to edit this file (sometime ago I read it is not recommended
> to edit it directly)?


From 'man crontab'

"Each user can have their own crontab, and though these are files
in /var/spool/cron/crontabs, they are not intended to be edited
directly."

No mention about /etc/crontab. Someone correct me if I'm wrong, but
AFAIU you are safe to edit it.

HTH,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
  Réponse avec citation
Vieux 10/03/2007, 13h30   #7
Franck Joncourt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

On Sat, Mar 10, 2007 at 02:57:01PM +0200, Andrei Popescu wrote:
> Marko Randjelovic <marel@sbb.co.yu> wrote:
>
> > > If I am not mistaken crontab -e edits root's crontab, however,
> > > according to me, you are looking for /etc/crontab, aren't you ?
> > >
> > >

> > I thaught root's crontab is /etc/crontab. Thanks. Which command then
> > to run to edit this file (sometime ago I read it is not recommended
> > to edit it directly)?

>
> From 'man crontab'
>
> "Each user can have their own crontab, and though these are files
> in /var/spool/cron/crontabs, they are not intended to be edited
> directly."
>
> No mention about /etc/crontab. Someone correct me if I'm wrong, but
> AFAIU you are safe to edit it.



From 'man /etc/crontab' :

# /etc/crontab: systemâ€wide crontab
# Unlike any other crontab you don’t have to run the ‘crontab’
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

It seems you can do it !

--
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8rHKxJBTTnXAif4RAgiuAKCW4Oojpo+lgH9CaNLBt+ ykumIsMwCfcXzS
kEy4JDb2Dqw5UDGKGVBZ99U=
=6QVW
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 11/03/2007, 16h50   #8
Matus UHLAR - fantomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Empty crontab

On 10.03.07 14:57, Andrei Popescu wrote:
> >From 'man crontab'

>
> "Each user can have their own crontab, and though these are files
> in /var/spool/cron/crontabs, they are not intended to be edited
> directly."
>
> No mention about /etc/crontab. Someone correct me if I'm wrong, but
> AFAIU you are safe to edit it.


try:
apropos crontab
man 5 crontab


--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14150 seconds with 16 queries