Hello,
scp fails to get files from a remote machine when the .bashrc in the remote machine runs /usr/games/fortune (or even just a plain echo). How can I fix this without removing the "offending" line from the .bashrc file?
I weas able to duplicate your problem here using the "date" command. The workaround is to put this command (and any others) inside an if-statement block that can distijnguish interactive from non-interactive connections. My setup (Debian-Sid) sets the skeleton .bashrc file up this way be default. To do it by hand, do something like this (taken from my .bashrc file):
# If running interactively, then:
if [ "$PS1" ]; then
... various other commands ...
/usr/games/fortune
fiMake sure *all* executable content of the file is inside the if block and you should be set.
- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
