how can I pass an environment variable through an ssh command?
Posted
by
Ross Rogers
on Super User
See other posts from Super User
or by Ross Rogers
Published on 2009-09-29T22:56:04Z
Indexed on
2012/09/26
21:40 UTC
Read the original article
Hit count: 273
command-line
|ssh
How can I pass a value into an ssh command, such that the environment that is started on the host machine starts with a certain environment variable set to my choosing?
EDIT: The goal is to pass the current kde desktop ( from dcop kwin KWinInterface currentDesktop ) to the new shell created so that I can pass back an nfs locations to my JEdit instance on the original server which is unique for each KDE desktop. ( Using a mechanism like emacsserver/emacsclient)
The reason multiples ssh instances can be in flight at one time is because when I'm setting up my environment, I'm opening a bunch of different ssh instances to different machines.
© Super User or respective owner