Anyway, crontabs should only be use via the crontab command.
use:
crontab -l to view your crontab
crontab -e to edit your crontab (does work for every user on my redhat   
4.2)
cronatb -r to remove your crontab


 -----Message d'origine-----
De: Bogdan Taru [SMTP:[EMAIL PROTECTED]]
Date: vendredi 11 septembre 1998 09:58
�: linux-newbie
Objet: crond



 Nevermind,
 I got a solution to my problem. I've done everything below in X, and if   
I
just closed the terminal window I was working in, and restarted X
everything was OK....

 Hi all,
 I made a script which I want to execute everyday at 23:00. But it seemed
a chalenge to me to make it execute as a simple user, not root. So I
created a file 'bgd' (--> my user name) in '/var/spool/cron/crontab',   
with
the appropiate line in it...
 I did that as root, because otherwise I would not have the right to read
(nor write) into that directory. I killed the cron daemon (crond) and
restarted the daemon simply typing 'crond' or 'crond -b'. Everything   
looks
fine, except for one thing...
 In the '/var/spool/cron/crontab/root' I have, for example, a line which
does a 'sync' every 5 minutes. The problem is that every 5 minutes I get   
a
line on the screen, announcing me that 'sync' was started by root at
**:**:**, with the pid ***. It didn't happen before, and the output of
'sync' is redirected to > '/dev/null'.
 If I remove '/var/spool/cron/crontab/bgd', and restart the daemon as I
did before, everything is fine again...
 Now my question is: can every user have a entry in the crontab, and if
so, what did I do wrong?

Have fun,
bogdan



Reply via email to