Re: Empty crontab

2007-03-11 Thread Matus UHLAR - fantomas
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, [EMAIL PROTECTED] ; 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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Empty crontab

2007-03-10 Thread Franck Joncourt
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


signature.asc
Description: Digital signature


Re: Empty crontab

2007-03-10 Thread Marko Randjelovic

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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Empty crontab

2007-03-10 Thread Cédric Lucantis
  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



Re: Empty crontab

2007-03-10 Thread Franck Joncourt
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


signature.asc
Description: Digital signature


Re: Empty crontab

2007-03-10 Thread Andrei Popescu
Marko Randjelovic [EMAIL PROTECTED] 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)



Re: Empty crontab

2007-03-10 Thread Franck Joncourt
On Sat, Mar 10, 2007 at 02:57:01PM +0200, Andrei Popescu wrote:
 Marko Randjelovic [EMAIL PROTECTED] 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


signature.asc
Description: Digital signature