Een OSX vraag. Jaja, dat hier
![]()
Bij het scp'en van een file merktte ik wat op, het lijkt erop als dat ik een file probeer te scp'en dat ie een deel van mijn .profile, .bash_profile, .bashrc inleest maar het niet helemaal goed gaat. Ik heb dit bijvoorbeeld niet als in van poopy naar nomad connect (OSX -> Ubuntu) of van Linux bakken naar Solaris en/of BSD bakken scp (v.v.). Het moet ergens iets in dat OSX zitten waardoor ie mijn hele shell wilt opzetten, terwijl ik alleen aan het scp'en ben. Op andere platformen heb ik dit dus niet. Het nare is dat ie ook niet de file scp'ed.
quote:
10:55 wesleys@nomad:/home/wesleys$ scp shell.tgz wesleys@192.168.1.12:.
wesleys@192.168.1.12's password:
bash: line 7: set_tty: command not found
bash: line 8: set_ps1: command not found
bash: line 9: set_shell_options: command not found
# Users logged in (max 13)
10:55 wesleys@nomad:/home/wesleys$ ssh 192.168.1.12
wesleys@192.168.1.12's password:
Last login: Sat Feb 3 10:53:41 2007 from 192.168.1.9
Welcome to Darwin!
# Users logged in (max 13)
10:55 up 16:23, 2 users, load averages: 0.35 0.75 0.91
USER TTY FROM LOGIN@ IDLE WHAT
izzy console - Fri18 16:22 -
# Fortune of the shell
Darwin poopy.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
10:55:33 wesleys@poopy:~$
Nu is zijn mijn vragen, hoe komt het dat ik bij een scp een deel van mijn .profile inlees? Hoe kan ik dit verhelpen?
cat .bash_profile
quote:
source $HOME/.bashrc
cat .bash_rc
quote:
source $HOME/.profile
load_env
load_alias
load_os
load_shell
set_tty
set_ps1
set_shell_options
motd
# Load some extras
source $HOME/.env.local
Mmm, merk ook dat het gebeurd als ik dit doe:
1:21 wesleys@nomad:/home/wesleys$ ssh 192.168.1.12 ls
wesleys@192.168.1.12's password:
bash: line 7: set_tty: command not found
bash: line 8: set_ps1: command not found
bash: line 9: set_shell_options: command not found
ssh -t 192.168.1.12 ls werkt wel gewoon..
[ Bericht 6% gewijzigd door slakkie op 03-02-2007 11:23:43 ]