File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Connecting to Remote Unix Host from JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connecting to Remote Unix Host from JAVA" Watch "Connecting to Remote Unix Host from JAVA" New topic

Connecting to Remote Unix Host from JAVA

Siva shankari

Joined: Sep 07, 2010
Posts: 1
Hi all,

1) I use JSch [Java Secure Channel] to connect to my remote host. I am able to connect and execute unix commands using this. But for certain commands, I get error such as Null Pointer Exception. But, when I debug the same, it gets executed and displays the output properly. So, I guess, the time delay in executing the subsequent commands in Java has to be delayed, such that, it manages to fetch the output from the unix, and displays it through the Java GUI. Please tell me, how to set this time delay.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

JSch has a mailing list. You may have better luck searching or posting there.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Connecting to Remote Unix Host from JAVA
It's not a secret anymore!