Timeline for How to redirect STDIN of background process?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2016 at 20:45 | vote | accept | Croll | ||
| Jul 2, 2016 at 19:51 | |||||
| Mar 31, 2016 at 13:32 | comment | added | Croll | It works now, i am not sure what changed, but application ignores any other command except the most first one. I tried adding \n to the end of my "echoes". | |
| Mar 31, 2016 at 12:53 | comment | added | Jay jargot | The behavior of you java application is not the same as my simple app.java (on Linux). I could not imagine, at time of writing, what could be the root cause, sorry. | |
| Mar 31, 2016 at 12:08 | comment | added | Croll | Its same, but without hanging. I don't have application sources, but it's normal command line tool. Tried to use "/proc/PID/fd/0", no success, but i could use it incorrectly. | |
| Mar 31, 2016 at 12:00 | comment | added | Jay jargot | try java -jar app.jar < pipe.in & instead | |
| Mar 31, 2016 at 11:56 | comment | added | Croll |
If i run java -jar app.jar < pipe.in java is not started, and terminal hangs untill Ctrl+Z or Ctrl+C
|
|
| Mar 31, 2016 at 11:50 | comment | added | Jay jargot | @DmitrjA So the application start needs to be troubleshooted? The test section here is a real test. Do you have any error message on the console, in the appilcation log file, in nohup.out? My own app.java read line from STDIN and write it to STDOUT. | |
| Mar 31, 2016 at 11:48 | comment | added | Croll | Good try but it does not work (with or without nohup). My application simply not running (not started). | |
| Mar 31, 2016 at 9:54 | history | answered | Jay jargot | CC BY-SA 3.0 |