On Tue, Oct 19, 2004 at 02:53:15PM -0400, Venkateswaran, Bhaskar wrote: > $DATESPATH is a variable defined in 'datauser's profile, but it looks like > the variable is not recognized in the context of this command.
Right. Ssh doesn't source most of the shell profiles. Try this: ssh -l datauser mach1 'echo $DATESPATH' That will tell you if the variable is set or not (it won't be set). You can use the ~/.ssh/environment file to set variables that you want to exist when running remote commands, but PermitUserEnvironment has to be enabled in your sshd configuration for that to work. Another alternative is to use daemon-over-ssh and put an rsyncd.conf file on each system that defines a module with the right path. ..wayne.. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html