Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
SCP hangs with commands in .bashrc
I've got strange problem:
After added command
perl do_sth_ob_bg.pl &
to my .bashrc (yes, using bash), scp to that machine stops to work, it connects and hangs. After a while, it's dropped with timeout.
Anyone could explain it ? Any suggestion to work-around ?
Thanx a lot, merry xmas ))
12-24-2005 #2perl do_sth_ob_bg.pl &
12-26-2005 #3Originally Posted by anomie
srerucha@box:~> cat ~/bin/load.pl
open(LOAD,"/proc/loadavg") || die "Couldn't open /proc/loadavg: $!\n";
my @load=split(/ /,<LOAD>);
print "$host: $load $load $load at ", scalar(localtime);
I wonder if you could add that to a more appropriate place. Rather than the ~/.bashrc file, how about adding the entry to some place related to X?
Are you using KDE? If so, add it to ~/.kde/Autostart. If not, which desktop environment are you using?
If nothing is available within your desktop environment for this purpose, you could add the entry to the ~/.xinitrc file.
- Join Date
- Nov 2005
I had the same problem. If bashrc contains any echo or similar commands, scp tries t parse the messages and gets confused.