Results 1 to 3 of 3
Thread: OutputStream.flush() problem
- 01-28-2011, 05:43 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
OutputStream.flush() problem
I would like to send the same command multiple times to cmd. My source code is here:
My program didn't complete the loop. It works about 200times and hang without any error message. Help me pleaseJava Code:Process process = Runtime.getRuntime ().exec ("cmd"); for(int i=0;i<=250;i++) { line="command"+"\n"; stdin.write(line.getBytes()); stdin.flush(); System.out.println(i); }stdin.close();
- 01-29-2011, 07:24 PM #2
Duplicate of OutputStream.flush() problem
db
-
Similar Threads
-
GZIPOutputstream flush
By Nardian in forum NetworkingReplies: 4Last Post: 09-25-2010, 05:09 PM -
How to flush gui from using old data
By ShinTec in forum AWT / SwingReplies: 1Last Post: 06-10-2010, 02:18 PM -
Outputstream not streaming.
By dantestein in forum NetworkingReplies: 2Last Post: 03-14-2009, 07:36 AM -
interrupting urlconnection's outputstream
By zynasis in forum NetworkingReplies: 5Last Post: 10-02-2008, 12:49 AM -
flush method
By bugger in forum New To JavaReplies: 0Last Post: 11-11-2007, 07:39 PM


LinkBack URL
About LinkBacks

Bookmarks