Hi, just check in your .bashrc if this shell is really a interactive one, for example like this, to avoid messing around with the output of e.g. shell-scripts...: --- .bashrc: --- case "$-" in *i*) # Interactive Shell! echo "Welcome on `hostname`!" # Hello /usr/games/fortune # Fortune ddate # Discordian Date PS1='\u@\h \w\$' # Fancy Prompt # check for mail # blah... ;; esac Chris On Sat, Feb 15, 2003 at 02:55:17PM -0200, insecure at mail.od.ua wrote:> Just a quick note: this is my .bashrc:(...)> Line 3 was added and subsequent lines commented out. > Now scp works. Looks like a little scp bug for me.-- "... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed." - Unix for Dummies, 2nd Edition -- found in the .sig of Rob Riggs, rriggs at tesser.com
"insecure at mail.od.ua" wrote:> Just a quick note: this is my .bashrc: > > # Executed by non-login interactive shell > # > # scp go wild when it see this > #echo "<*> Executing ~/.bashrc from '$0'. Command line: '$*'" > #ps -H e > #echo "<*> Finished ~/.bashrc"So don't do that, then.> Line 3 was added and subsequent lines commented out. > Now scp works. Looks like a little scp bug for me.Your non-interactive shell should not generate extraneous output as scp has no way of knowing how much of the output to ignore. You will also see similar problems with other software that uses ssh as a transport (eg rsync, cvs). This is not a bug, see http://www.openssh.com/faq.html#2.9 -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Hi OpenSSH folks, Just a quick note: this is my .bashrc: # Executed by non-login interactive shell # # scp go wild when it see this #echo "<*> Executing ~/.bashrc from '$0'. Command line: '$*'" #ps -H e #echo "<*> Finished ~/.bashrc" Line 3 was added and subsequent lines commented out. Now scp works. Looks like a little scp bug for me. CC me, I'm not subscribed. Thanks for your attention. -- vda