Named Pipes are your friend. See the article Linux Journal: Using Named Pipes (FIFOs) with Bash.
More Related Contents:
- Quick-and-dirty way to ensure only one instance of a shell script is running at a time
- How to wait in bash for several subprocesses to finish, and return exit code !=0 when any subprocess ends with code !=0?
- Shell script read missing last line
- Wait for a process to finish
- Quick-and-dirty way to ensure only one instance of a shell script is running at a time
- How does Ctrl-C terminate a child process?
- How to check if a process id (PID) exists
- Bash conditional based on exit code of command
- How to kill all subprocesses of shell?
- How to pipe multiple commands into a single command in the shell? (sh, bash, …)
- Using groovy, how do you pipe multiple shell commands?
- How to wait on all child (and grandchild etc) process spawned by a script
- How can I add numbers in a Bash script?
- Batch equivalent of Bash backticks
- Running script upon login in mac OS X [closed]
- How to append output to the end of a text file
- Command substitution: backticks or dollar sign / paren enclosed? [duplicate]
- Why does my Bash counter reset after while loop
- How do I use a file grep comparison inside a bash if/else statement?
- Set a parent shell’s variable from a subshell
- Value too great for base (error token is “08”) [duplicate]
- What expands to all files in current directory recursively?
- Looping through all files in a directory [duplicate]
- How to silence output in a Bash script?
- How to find/replace and increment a matched number with sed/awk?
- Syntax for a single-line while loop in Bash
- In bash, is there an equivalent of die “error msg”
- How to zero pad numbers in file names in Bash?
- Subtract two variables in Bash
- Multidimensional associative arrays in Bash