listen-pipe.sh: added execpipe maker, for communicate with workflow and hostsys
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
6
listen-pipe.sh
Normal file
6
listen-pipe.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
trap "rm -f $HOME/execpipe" EXIT
|
||||||
|
trap "rm -f $HOME/execpipe" ERR
|
||||||
|
|
||||||
|
mkfifo $HOME/execpipe
|
||||||
|
while true; do eval "$(cat $HOME/execpipe)"; done
|
||||||
Reference in New Issue
Block a user