In my Ubuntu, i run java application in background. I use bash script to run it and now it looks like:nohup java -jar app.jar &exit 0The problem that i want to be able to write an input string to my application, without making it foreground, from different terminals/sessions. Something likeecho mytext > /appdir/inHow should i change my script?
How to redirect STDIN of background process?
bash;io redirection;io;stdin;nohup
main.sh#!/bin/bashset -eif [ ! -p in ]; then    mkfifo infitail -f in | java -jar app.jarSend command to the application with following syntaxecho command > /home/user/in