This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 8843
    
    7

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connecting to Remote Unix Host from JAVA
 
Similar Threads
How I connect to remote Unix Box from standalone java application?
connecting to UNIX
Running Unix commands
Saxon Processor