[Swift-devel] command line ssh provider...

Jonathan Monette jonmon at mcs.anl.gov
Tue Jan 17 17:17:44 CST 2012


Ok.  I understand now.  Anyways the switch to ProcessBuilder fixed the issue.

On Jan 17, 2012, at 5:12 PM, Mihael Hategan wrote:

> On Tue, 2012-01-17 at 17:08 -0600, Jonathan Monette wrote:
>>> Though now that I think about it, this wasn't strictly necessary since
>>> for the ssh-cl provider, the task environment variables shouldn't be
>>> passed to the ssh subprocess (they go on the command line of the ssh
>>> shell).
>> What do you mean by this?  When I saw the command line of the ssh shell no environment variables are being passed.
> 
> 1. java forks ssh
> 2. ssh -> sshd
> 3. sshd forks shell
> 
> There is no point in passing task env vars in (1). You need them
> somewhere in (3).
> 
> You don't see them in the shell command line because they are passed on
> its stdin (i.e. as if typed).
> 




More information about the Swift-devel mailing list