During testing against numerous remote platforms we've discovered that attempting to set environment variables (using JSch Exec Channel), may corrupt the channel and thus prevent a remote application from launching.
This is a known issue with some shells / platforms and JSch. The work around is to defined the environment variables using the execution command.
During testing against numerous remote platforms we've discovered that attempting to set environment variables (using JSch Exec Channel), may corrupt the channel and thus prevent a remote application from launching.
This is a known issue with some shells / platforms and JSch. The work around is to defined the environment variables using the execution command.
eg: http://stackoverflow.com/questions/9366914/setting-environment-variables-on-a-jsch-channelexec