What steps will reproduce the problem?
1. upload a simple test.sh to remote host.The host has already set $my_env in
.bash_profile
#/bin/bash
echo "hello, $my_env"
2. Result res = ssh.exec(new ExecShellScript("/xxx/xxx/test.sh"));
3. Check the output
What is the expected output? What do you see instead?
I expect it will output "hello, some_value", but it only outputs "hello,"
What version of the product are you using? On what operating system?
Latest version.
OS: Redhat AS5, x86_64
Please provide any additional information below.
N/A.
Original issue reported on code.google.com by shenkai....@gmail.com on 13 Jul 2012 at 5:14
Original issue reported on code.google.com by
shenkai....@gmail.com
on 13 Jul 2012 at 5:14