简体   繁体   中英

How would I receive and send information to console in a different program in Java?

How would I receive and send information to console in a different program in Java? The program I am trying to receive console from was made in Torque . I don't know if that makes a difference. I have been reading up on different topics, but all seem to be telling me for the program that is asking for it. I currently don't have any code of this because of lack of information about the topic. Thank your for you help and time if you can help me.

This is an OS-specific kind of question... How to pipe standard output from one process to the standard input in another process...

Unix normally does it with the pipe symbol (|) as in:

$ ls | wc

This takes the output from ls and sends it to the input of wc... If this info is not helpful, consider expanding your question and making it more specific. What have you tried?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM