diff options
author | Haoran S. Diao <0@hairydiode.xyz> | 2019-09-15 17:19:30 -0700 |
---|---|---|
committer | Haoran S. Diao <0@hairydiode.xyz> | 2019-09-15 17:19:30 -0700 |
commit | a45dfa38b8042512137741381e50b25197357591 (patch) | |
tree | d95e813aa790c0c5ee00e746e22134ae341ac1e0 /connd |
initial commit
Diffstat (limited to 'connd')
-rwxr-xr-x | connd | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#!/bin/bash +tail -f mc.out & +while true; do + read input + if [ "$input" == "quitd" ]; then + kill %1 + exit + fi + echo $input >> mc.in +done |