On Mon, Jun 24, 2002 at 10:00:17AM -0500, rpgoldman at real-time.com wrote:
>
>I was wondering if any of you have experience debugging cron jobs.
>
>Here's my problem:  I have three cron jobs that I run from root's
>crontab that look like this (with variations for different uids):
>
>0 1 * * *       su rpg -c /home/rpg/bin/backup-machine1

Are you using rsyncd? If not, you're probably trying to tunnel over ssh.
put "export RSYNC_RSH="ssh" at the top of your backup-machine1 script.

>
>When I run these scripts from the command line, they work fine.  The
>scripts just invoke rsync (running "locally," between two different
>nfs directories mounted on the same machine) to do some backups.
>
>But, when I invoke them from cron, I get responses like this:
>
>From: root at tsathoggua.mydomain (Cron Daemon)
>To: root at tsathoggua.mydomain
>Subject: Cron <root at tsathoggua> su rpg -c /home/rpg/bin/backup-machine1
>Date: Mon, 24 Jun 2002 01:00:01 -0500 (CDT)
>
>building file list ... rsync: error writing 4092 unbuffered bytes - exiting: Broken pipe
>rsync error: error in rsync protocol data stream (code 12) at io.c(464)
>
>Any idea why this should happen?
>
>Thanks,
>R
>_______________________________________________
>Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
>http://www.mn-linux.org
>tclug-list at mn-linux.org
>https://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
>

-- 
Ben Lutgens				 | http://people.sistina.com/~blutgens/	
System Administrator	 | http://www.sistina.com/
Sistina Software Inc. | 

"I got a wife and kids too but you don't see me out here stealing Imperial
Droids now do ya?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020624/b98489a5/attachment.pgp