salvatore - 2011-08-03

I do a connection ssh wit jsch to linux host.
The connection it's ok.
I try to excute same command, bat I have a problem.
For example if I do this sequence of command
"cd .."
the output of the first command "pwd" is equal to the second command "pwd".
This is the links of exmple  that I used:
Can you help me to solve this problem?
Tanks in andvance.