Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Changing current shell before executing cmds

  • Hi,
    I need to execute a few commands using jsch.
    All these commands should be executed using '/bin/sh'.
    But the current shell set for the user is '/bin/csh'.
    So using jsch, how can I change the current shell to 'sh' before executing those unix commands?
    Can someone please help me with a working example…. Thanks in advance.