Script work fine on sheel, but no on a cron job

stephane.purnelle at corman.be stephane.purnelle at corman.be
Wed Oct 31 16:24:39 GMT 2007


The script have line like

rsync -avz --password-file=/usr/local/etc/rsync.pwd /etc/rsyncd.conf 
rsync://root@remote-node:/etc_conf

A  pcap file from wriesharck can help you ?

thanks

-----------------------------------
Stéphane PURNELLE                         stephane.purnelle at corman.be
Service Informatique       Corman S.A.           Tel : 00 32 087/342467

rsync-bounces+stephane.purnelle=corman.be at lists.samba.org a écrit sur 
24/10/2007 14:00:37 :

> Send rsync mailing list submissions to
>    rsync at lists.samba.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.samba.org/mailman/listinfo/rsync
> or, via email, send a message with subject or body 'help' to
>    rsync-request at lists.samba.org
> 
> You can reach the person managing the list at
>    rsync-owner at lists.samba.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rsync digest..."
> To unsubscribe or change options: https://lists.samba.
> org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> 
> ---------------------------------------Today's Topics:
> 
>    1. Script work fine on sheel, but no on a cron job
>       (stephane.purnelle at corman.be)
>    2. Re: Script work fine on sheel, but no on a cron job
>       (Jan-Benedict Glaw)
>       (Jan-Benedict Glaw)
>    3. Are extended attributes supported under cygwin for rsync 3.0
>       pre2 ? (Ben Anderson)
>    4. rsync every 15 min, lots of defunct processes, high iowait
>       (ChrisBeach)
> 
> ----- Message de stephane.purnelle at corman.be sur Tue, 23 Oct 2007 
> 15:59:29 +0200 -----
> 
> Pour:
> 
> rsync at lists.samba.org
> 
> Objet:
> 
> Script work fine on sheel, but no on a cron job
> 
> 
> Hi, 
> 
> I make a script which make some call of rsync to connect to a rsync 
daemon. 
> When I run on a shell, the script work fine. 
> 
> When I run this scripts from a cron-job, the script fail with theses
> messages : 
> 
> rsync: failed to connect to remote-node: Connection refused (111)
> rsync error: error in socket IO (code 10) at clientserver.c(94) 
> 
> What's happen ? 
> 
> thanks 
> 
>         Stéphane 
> -----------------------------------
> Stéphane PURNELLE                         stephane.purnelle at corman.be
> Service Informatique       Corman S.A.           Tel : 00 32 087/342467
> ----- Message de Jan-Benedict Glaw <jbglaw at lug-owl.de> sur Tue, 23 
> Oct 2007 23:18:37 +0200 -----
> 
> Pour:
> 
> stephane.purnelle at corman.be
> 
> cc:
> 
> rsync at lists.samba.org
> 
> Objet:
> 
> Re: Script work fine on sheel, but no on a cron job
> 
> On Tue, 2007-10-23 15:59:29 +0200, stephane.purnelle at corman.be 
> <stephane.purnelle at corman.be> wrote:
> > I make a script which make some call of rsync to connect to a rsync 
> > daemon.
> > When I run on a shell, the script work fine.
> > 
> > When I run this scripts from a cron-job, the script fail with theses 
> > messages : 
> > 
> > rsync: failed to connect to remote-node: Connection refused (111)
> > rsync error: error in socket IO (code 10) at clientserver.c(94)
> 
> Care to show us the script?  You'd debug this by either tcpdump'ing
> the network traffic or by strace'ing one (or both) instances of the
> rsync client/daemon.
> 
> MfG, JBG
> 
> -- 
>       Jan-Benedict Glaw      jbglaw at lug-owl.de +49-172-7608481
>  Signature of:                    Don't believe in miracles: Rely on 
them!
>  the second  :
> [rattachement "signature.asc" supprimé par Stéphane 
PURNELLE/COR/SOPARIND] 
....
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list