Leser: 3
![]() |
|< 1 2 >| | ![]() |
16 Einträge, 2 Seiten |
bieber+2008-11-05 14:15:02--was meinst du mit ".bashrc parsen "? kenne mich leider nicht aus in den tiefen von Betriebssystemen
1
2
3
4
5
6
When bash is invoked as an interactive login shell, or as a non-interactive shell
with the --login option, it first reads and executes commands from the file
/etc/profile, if that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and exe‐
cutes commands from the first one that exists and is readable. The --noprofile
option may be used when the shell is started to inhibit this behavior.
Gast+2008-11-05 17:41:00--Warum so kompliziert? Es existiert doch eine Shell, die die ".bashrc" ausführen kann.
Code: (dl )"(. ~/.basrc && strange_alias_command)"
Also Subshell auf machen, in ihr die ".bashrc" im selben Kontext ausführen "." und danach das alias.
$ ssh target-host /usr/bin/bash -ilc strange_alias_command
![]() |
|< 1 2 >| | ![]() |
16 Einträge, 2 Seiten |