Logging from cron

Tim rsync at CyberCraftCorp.com
Tue Mar 23 18:20:18 GMT 2004


Hi Tim,

That worked.  Thanks!!!

BTW, sorry about the automated message from my anti-spam system.  I didn't realize that replies would include an individual subscriber's email.  So I quickly created a separate email address for this list without the spam trap.

Thanks again,
Tim



*********** REPLY SEPARATOR  ***********

On 3/23/2004 at 12:59 PM Tim Conway wrote:

>"$rsynccommandline >$logfile 2>&1" is one way - use however many "v"s you 
>need.
>If you want to accumulate the output of several invocations, 
>"$rsynccommandline >>$logfile 2>&1"
>If you really want it in syslog
>"$rsynccommandline 2>&1 |logger $facility.$severity", and make sure you 
>have syslog configured to put that where you want it.
>
>
>Tim Conway
>Unix System Administration
>Contractor - IBM Global Services
>desk:3032734776
>conway at us.ibm.com
>
>
>
>
>"T. Coutu" <coutu3 at CyberCraftCorp.com> 
>Sent by: rsync-bounces+conway=us.ibm.com at lists.samba.org
>03/23/2004 10:53 AM
>Please respond to
>coutu3
>
>
>To
>rsync at lists.samba.org
>cc
>
>Subject
>Logging from cron
>
>
>
>
>
>
>Hello,
>
>I've just spent several hours going over several Google searches trying to 
>find a way to configure rsync to log into a file named 
>"/var/log/rsync.log".  So far, every instance where I've found someone 
>asking about rsync logging remained unanswered (which is kind of weird in 
>itself).
>
>As far as I can tell, the only way to do this is to setup rsync as a 
>daemon process so that it will read an rsync.confg.  The problem is that I 
>don't want to run rsync as a daemon process, and am not interested in 
>working from a rsync.confg file if I can avoid it.  My rsync command lines 
>are being generated on the fly by a perl program running via cron, and 
>then shelling the command to the OS (linux) and handshaking via SSH.  This 
>is working fine, but I need a log to determine what is causing rsync to 
>shutdown before completing the full mirror of the server.
>
>Does anyone have any suggestions as to how I can get a log generated from 
>rsync running from the command line?
>
>Many Thanks in Advance,
>Tim
>
>
>
>-- 
>To unsubscribe or change options: 
>http://lists.samba.org/mailman/listinfo/rsync
>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
>
>-- 
>To unsubscribe or change options:
>http://lists.samba.org/mailman/listinfo/rsync
>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html





More information about the rsync mailing list