Re: Re: cat cron jobs into crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Mar 13, 2007 at 07:32:20AM +0530, Sudev Barar enlightened us:
> >On Mon, 12 Mar 2007 20:58:46 -0400, Matt Hyclak wrote:
> >> On Mon, Mar 12, 2007 at 05:21:47PM -0800, Karl R. Balsmeier enlightened
> >> us:
> >>> What's the best/safest way to "cat" the following job into crontab?
> >>>
> >>> */3 * * * *  /usr/lib64/nagios/plugins/check_megaraid_passive.sh >
> >>> /dev/null 2>&1
> >>>
> >> echo '*/3 * * * *  /usr/lib64/nagios/plugins/check_megaraid_passive.sh >
> >> /dev/null 2>&1' > /etc/cron.d/check_megaraid_passive.sh
> >>
> 
> You should be appending so would you not use >> instead of >

I was assuming we were creating a new file. Either way will work.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux