shell comand

salvatore
2011-08-03
2013-05-28
  • salvatore
    salvatore
    2011-08-03

    Hi,
    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
    "pwd"
    "cd .."
    "pwd"
    the output of the first command "pwd" is equal to the second command "pwd".
    This is the links of exmple  that I used:
    http://www.jcraft.com/jsch/examples/Exec.java
    Can you help me to solve this problem?
    Tanks in andvance.