List Info

Thread: crontab configuration in FreeBSd -6.2




crontab configuration in FreeBSd -6.2
country flaguser name
India
2007-06-27 01:50:25

Hi all

  I  need to configure a crontab  for a FreeBSD -6.2 box    
.


   To test  it , as root user I     entered a line  into the
  /etc/crontab  
by using   easyeditor  as follows
50      21      *       *       *       root   
/root/testcron

and I saved this.(cat /root/testcron  is   touch
/root/desktop/Myfile)

and I tried to  do  as root user this   # /etc/rc.d/cron 
restart

got O/P  as

Stopping cron.
Starting cron.


Then I tried to give   #crontab -l    But Output  is as
this

don# crontab -l
crontab: no crontab for root

why this   message  is it working fine ? ya not how can I
list crontab -l 
(the cronjobs for root)

Pls provide your suggestions

any way the Myfile is created by crontab , but    why the
message no cronjob 
for  root ?

____________________________________________________________
_____
Millions of Matrimonial Profiles  Shaadi.com. Join Now! 
http://ww
w.shaadi.com/ptnr.php?ptnr=mhottag

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: crontab configuration in FreeBSd -6.2
country flaguser name
Netherlands
2007-06-27 03:54:31
On Wednesday 27 June 2007, dhaneshk k wrote:
> Hi all
>
>   I  need to configure a crontab  for a FreeBSD -6.2
box     .
>
>
>    To test  it , as root user I     entered a line 
into the   /etc/crontab
> by using   easyeditor  as follows
> 50      21      *       *       *       root   
/root/testcron
>
> and I saved this.(cat /root/testcron  is   touch
/root/desktop/Myfile)
>
> and I tried to  do  as root user this   #
/etc/rc.d/cron  restart
>
> got O/P  as
>
> Stopping cron.
> Starting cron.
>
>
> Then I tried to give   #crontab -l    But Output  is as
this
>
> don# crontab -l
> crontab: no crontab for root
>
> why this   message  is it working fine ? ya not how can
I list crontab -l
> (the cronjobs for root)
>
> Pls provide your suggestions
>
> any way the Myfile is created by crontab , but    why
the message no
> cronjob for  root ?
Because that's a different crontab. Each user (including
root) has their own 
crontab. What you have just edited is the system wide
crontab.

The message stating "root's crontab for freebsd"
in /etc/crontab is kind of 
confusing.

HTH,
Pieter de Goeje
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: crontab configuration in FreeBSd -6.2
country flaguser name
United States
2007-06-27 08:30:58
See the FAQ entry titled
"Why do I keep getting messages like “root: not found”
after editing my crontab file?"
http://be-well
.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#RO
OT-NOT-FOUND-CRON-ERRORS

-- 
Lowell Gilbert, embedded/networking software engineer,
Boston area
		http://be-well.ilk.or
g/~lowell/
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )