[ 
https://issues.apache.org/jira/browse/SSHD-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17616507#comment-17616507
 ] 

Lyor Goldstein commented on SSHD-1300:
--------------------------------------

{code:java|title=ClientSession}
/**
     * Create a channel to execute a command using specific PTY settings and/or 
environment.
     *
     * @param  command     The command to execute
     * @param  ptyConfig   The PTY configuration to use - if {@code null} then 
internal defaults are used
     * @param  env         Extra environment configuration to be transmitted to 
the server - ignored if
     *                     {@code null}/empty.
     * @return             The created {@link ChannelExec}
     * @throws IOException If failed to create the requested channel
     */
    ChannelExec createExecChannel(
            String command, PtyChannelConfigurationHolder ptyConfig, 
Map<String, ?> env)
            throws IOException;
{code}

> 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

Reply via email to