Strange bug (buffer overflow) happening only under cron
Voelker, Bernhard
bernhard.voelker at siemens-enterprise.com
Mon Oct 31 01:04:00 MDT 2011
Pedro Fortuny wrote:
> I am running OS X Snow Leopard on the 'sender' side and
> Linux (2.6.32, possibly fedora but unsure) on the 'receiver'
> side. Both with rsync 3.0.9.
>
> If I run the following command from the command line:
>
> /usr/local/bin/rsync -av -e "ssh -i \
> /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net" \
> --filter ': rsync.dirs' ~/ pfortuny at pfortuny.net:"~/backup_mbpro/"
>
> Everything works OK. However, if I run it as a cron task, I
> receive the following mail:
>
> [headers stripped]
> X-Cron-Env: <SHELL=/bin/bash>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=pedrofortunyayuso>
> X-Cron-Env: <USER=pedrofortunyayuso>
> X-Cron-Env: <HOME=/Users/pedrofortunyayuso>
> Message-Id: <20111028133407.4BC171BF226 at mypera.local>
> Date: Fri, 28 Oct 2011 15:34:01 +0200 (CEST)
> Status: RO
>
> cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory
> cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directory
The shell and the environment under cron may be different.
Did you try avoiding the "~" syntax?
Bye,
Berny
More information about the rsync
mailing list