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 |
initial commit
-rw-r--r-- | README | 6 | ||||
-rwxr-xr-x | connd | 10 | ||||
-rw-r--r-- | mc.in | 4 | ||||
-rw-r--r-- | mc.out | 27 | ||||
-rwxr-xr-x | serverd | 4 |
5 files changed, 51 insertions, 0 deletions
@@ -0,0 +1,6 @@ +script for spawning a terminal independent process with stdin and stdout at +mc.in and mc.out respectively + +serverd $COMMAND starts the process +connd in the same directory as mc.in and mc.out will connect to it +typeing "quitd" will disconnect from the process @@ -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 @@ -0,0 +1,4 @@ + +ls +cd ~ +ls @@ -0,0 +1,27 @@ +connd +mc.in +mc.out +readme +serverd +Android +Arduino +AUR +Bioshock +cad +code +Desktop +Downloads +Games +GIS +go +GOG Games +infostash +lang +My Games +other +phone +Songs +ucla +Webcam +work +论 @@ -0,0 +1,4 @@ +#!/bin/bash +echo "" > mc.in +echo "" > mc.out +tail -f mc.in | nohup $1 > mc.out & |