All Questions
8 questions
1
vote
1
answer
693
views
When using System.console() in Java, why do output pipes break?
I'm using System.console().readPassword() to read a password from the terminal and perform a set of actions. This all works fine, however when attempting to pipe the output to grep, head, awk, ...
1
vote
1
answer
484
views
How to open a (unnamed) unix pipe in a java client
A server, written in C, creates an unnamed unix pipe using pipe() - i.e. a pair of fd's.
Then it starts a client passing one of fd's for communication.
Everything is straightforward if a client is ...
0
votes
2
answers
1k
views
pipe telnet output to logfile with tee command using Java process exec
Concurrency and stream reading in a project for a simple MUD client is proving a bit of headache, so I'm trying to find an alternative. The tee command looks to fit the bill for concurrently ...
0
votes
1
answer
182
views
How can I determine if STDERR is buffered on a linux box?
I have a java app that calls a ksh script that is hanging. A look on the backend shows that the script's write process to STDOUT is full and blocked. STDERR is supposed to be empty and my java code is ...
1
vote
1
answer
2k
views
pipe Unix commands together in Java
I have a requirement to run the below command from Java
echo <inputMessage> | iconv -f utf8 -t Cp930
When i use the below code to run the command i see only the echo part is executed but the ...
1
vote
2
answers
244
views
Communication between unix commands in Java
In one commend , I'm trying to send data to System.out like this:
And in another command I'm trying to get this data from System.in.
It's strange because, it works once of many tries. I can try to ...
-1
votes
2
answers
1k
views
Calling Unix command from Java
How do I execute the Unix grep program to search for patterns in a set of files by calling that command from inside a Java program?
1
vote
2
answers
365
views
Pipe file disappears but still works
I have 2 programs, both written in Java. The first launches several instances of the second and then communicates with them via pipe files. When running 2 instances of the program, (I'll call the ...