[ https://issues.apache.org/jira/browse/SSHD-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17616536#comment-17616536 ]
Lyor Goldstein commented on SSHD-1300: -------------------------------------- {quote} org.apache.sshd.client.session.ClientSession#createExecChannel(...) can be a step of equivalent of java.lang.ProcessBuilder#start(). {quote} Disagree - the API does not provide environment variables. Not sure what you mean by {quote} is there an equivalent of java.lang.ProcessBuilder#environment() ? {quote} From the [javadoc|https://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html#environment()] IMO the API I referred to provides the same functionality. +You+ decide what the environment is via the parameters +you+ provide. If you want to know what the +peer+ environment is, then AFAIK there is no standard SSH way to do it. > ProcessBuilder#environment() equivalent for ChannelExec > ------------------------------------------------------- > > Key: SSHD-1300 > URL: https://issues.apache.org/jira/browse/SSHD-1300 > Project: MINA SSHD > Issue Type: Question > Affects Versions: 2.9.1 > Environment: Java SE 8, Apache NetBeans IDE 8.2 > Reporter: dgü > Assignee: Lyor Goldstein > Priority: Major > > Hello! > is there an equivalent of _java.lang.ProcessBuilder#environment()_ for > _org.apache.sshd.client.channel.ChannelExec_ ? > If not, is there a workround to get environment variables of _ChannelExec_ > before executing remote command ? > Thanks in advance... -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org