|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
> >> 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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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) |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|