<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>I put it in chloe user cron</DIV>
<DIV>but cron seems not running. why?<BR><BR>--- On <B>Thu, 9/3/09, Rob Kampen <I><rkampen@kampensonline.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Rob Kampen <rkampen@kampensonline.com><BR>Subject: Re: [CentOS] rsync<BR>To: "CentOS mailing list" <centos@centos.org><BR>Received: Thursday, September 3, 2009, 4:10 PM<BR><BR>
<DIV class=plainMail>chloe K wrote:<BR>> Hi<BR>>  I put the rsync in cronjob<BR>> but it won't work<BR>>  in root user cron<BR>>  */30  * * * *  /home/chloe/rsy.sh >/dev/null 2>&1<BR>>  1/ why it needs pw when I run this rsy.sh in root?<BR>> but if I run it in chloe user, it doesn't need pw as I put authoized_key in remote host chloe<BR>>  2/ why this root cronjob is not working? what wrong? I can't see this cron in message<BR>>  the rsy.sh is below<BR>>  #! /bin/sh<BR>> rsync -essh -av chloe@remotehost:/var/www/html <mailto:chloe@remotehost:/var/www/html> /backup/html<BR>>  Thank you<BR>> <BR>> <BR>Hi Chloe,<BR>As root the rsync has no access to your keys - run this job as yourself rather than root.<BR>HTH<BR>Rob<BR>> ------------------------------------------------------------------------<BR>> Ask a question on any topic and get answers
 from real people. *Go to Yahoo! Answers.* <<A href="http://ca.answers..yahoo.com/" target=_blank>http://ca.answers.yahoo.com</A>><BR>> ------------------------------------------------------------------------<BR>> <BR>> _______________________________________________<BR>> CentOS mailing list<BR>> <A href="http://ca.mc574.mail.yahoo.com/mc/compose?to=CentOS@centos.org" ymailto="mailto:CentOS@centos.org">CentOS@centos.org</A><BR>> <A href="http://lists.centos.org/mailman/listinfo/centos" target=_blank>http://lists.centos.org/mailman/listinfo/centos</A><BR>>   </DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>CentOS mailing list<BR><A href="http://ca.mc574.mail.yahoo.com/mc/compose?to=CentOS@centos.org" ymailto="mailto:CentOS@centos.org">CentOS@centos.org</A><BR><A href="http://lists.centos.org/mailman/listinfo/centos" target=_blank>http://lists.centos.org/mailman/listinfo/centos</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>
      <hr size=1>Be smarter than spam.. See how smart SpamGuard is at giving junk email the boot with the <a href="http://ca.promos.yahoo.com/newmail/overview2/"><b>All-new Yahoo! Mail </b></a>