Files
micro-service-api/listen-pipe.sh
supphakitd 9771fa1360
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 3m38s
Build Docker Image / Restart Docker Compose (push) Successful in 0s
listen-pipe.sh: added execpipe maker, for communicate with workflow and hostsys
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
2025-11-24 15:32:35 +07:00

6 lines
149 B
Bash

#!/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