agrawalmegha28 / sshxcute

Automatically exported from code.google.com/p/sshxcute
0 stars 0 forks source link

Execute of remote script can't interpret ENV variable such as $my_env #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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