This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
Author

Connecting to Remote Unix Host from JAVA

Siva shankari
Greenhorn

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.

Thanks.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: Connecting to Remote Unix Host from JAVA