Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does rdiff-backup say its not in my $PATH? It is when I login!

LOGIN rdiff-backup
0

If you get an error like sh: line1: rdiff-backup: command not found, but rdiff-backup is in your $PATH when you login to the remote host, it is happening because the value of bash’s $PATH is set differently when you login to an interactive shell than when you run a command remotely via SSH. For more information, read the bash manpage and look at your .bashrc and .bash_profile files. In particular, this can happen if rdiff-backup was installed via Fink on a remote Mac OS X system. /sw/bin is magically added to your $PATH by the script /sw/bin/init.sh when you login with an interative shell. Fink did this behind the scenes when you set it up. Simply add /sw/bin to your path manually, or copy rdiff-backup to a directory that is in your $PATH.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123