Ravi Joshi skribis: > The above code works perfectly. But can i get the status of invoke > signal? I mean is there any way so that I can get that whether shell > script is invoked successfully or not? Also I don't want to wait for its > execution and STDOUT/STDERR.
You can only know the exit code of the command after the command has finished, so your needs are a bit contradictory. The channel has a getExitStatus() method for this, it returns -1 if the command did not yet finish, and later the exit code returned by the command. PaĆlo
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d
_______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users