crontab + rsync problem
Tony Arnold
tony.arnold at manchester.ac.uk
Thu Oct 11 10:27:11 UTC 2007
Luca,
On Thu, 2007-10-11 at 11:56 +0200, Luca Ferrari wrote:
> On Thursday 11 October 2007 Tony Arnold's cat, walking on the keyboard, wrote:
> > I would check to see if .bash_profile is being executed when the cron
> > job runs.
>
> It seems it is not run, an even placing such commands for the ssh identity
> in .profile or .bashrc solve the problem. Now, placing the commands in my
> backup script worked, but I don't feel this an elegant solution. Any other
> way to achieve this?
A simple option would be to source your .bash_profile script from within
the backup script. At least that way the ssh identity commands are in
one place.
Regards,
Tony.
--
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
More information about the ubuntu-users
mailing list