Jd Steven

Greenhorn
+ Follow
since Oct 04, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jd Steven

Thank you for the link to article. It was pretty good.

Bill, on process hanging for infinite time if it writes to stdErr, that doesn't happen. I tested it and all I had to do was instead of getting inputStream get errorStream to process error response. So one block for input stream and one block for error stream.
11 years ago
it does work fine. Thanks.
11 years ago
I figured it out.

11 years ago
Hi folks,

Could someone please help me with how to get Unix command output in my JSP file? I am able to execute a unix command from JSP. However, I need to display the output in my JSP and I am not able to do it. This is what I am doing in my JSP -



Thanks in advance!
11 years ago
I have a java program that opens a new socket connection to the server (where VB application is listening) and then sends some data. The VB application is supposed to receive it and then send some other data back to the java client, which is now reading input stream. However, everytime I try to read from input stream it returns me -1 . Can anyone suggest anything please? Following is my code. fyi: Its part of client migration from VB to Java (server is still VB). The VB client works perfectly for the same using winsock but java doesnt

outStr.write(vgBufferOut); //write bytes array to output stream

socket.shutdownOutput();

inStr = socket.getInputStream(); //get input stream

vlLenbufferIn = inStr.read(vlBufferIn); //read

System.out.println("Length is " + vlLenbufferIn); //this always returns -1 - end of stream