Hi,

   +-From: "Dudek, Maciej" <maciej.du...@opitz-consulting.com> --
   |_Date: Fri, 26 Feb 2010 15:15:06 +0100 ______________________
   |
   |I am using ChannelShell with PTY = false  to execute commands. It works 
   |just fine, but I can't seem to be able to set environment variables
   |through  setEnv() - it has no influence on the environment. 
   |My goal ist to set the LANG variable. The same applies to setting 
   |this variable through a command execution:

   |      CommandResult cmd = conn.execute("export LANG=3DPOSIX");
   |      System.out.println("return_code = " + cmd.getReturnCode());
   |      CommandResult cmd2 = conn.execute("env | grep LANG");
   |      System.out.println(cmd2.getOutput() + " | return_code = " + 
                             cmd2.getReturnCode());

I have not understood the implementation of that conn.execute method,
but how about the log message from sshd in the debug mode; I mean that

  # /usr/sbin/sshd -d -d -d


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: @ymnk

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to