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

Close

Changing current shell before executing cmds

2011-08-07
2013-05-28
  • 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.