fdr-os@corona.imap.cc schrieb:
I think the 'keep bash running' was also poor phrasing on my part; I really meant to have the bash that ran with some commands remain the single, main logon shell for the ssh session. My original goal was to be able to run:
# ssh user@otherhost 'some command'
and end up in bash on otherhost as user, with aliases set and environment variables set, without having to copy over an rc file.
It looks like this is not possible; I can get ssh to run stuff before bash, but I can't get bash to set the aliases AND keep running. The rcfile seems to be the only way to get bash to do something as it starts up. I think the best I'll be able to do is something like:
# ssh -t user@otherhost 'scp mainhost:specialrcfile .; bash --login --rcfile specialrcfile'
.. but I haven't tried that yet.
Thanks to all for your ongoing comments and suggestions.
Hi, I don't have the right glue about bash & shells, but the last try looks like your "specialrcfile" will be run twice, wouldn't it ? JBScout --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org