gaboshlib/g_calc.sh aktualisiert

This commit is contained in:
olli 2023-11-07 16:33:37 +01:00
parent 5a06c3364b
commit bd3f476d09

View File

@ -3,7 +3,7 @@ function g_calc {
# Use bc in backround for multiple bc's running much faster # Use bc in backround for multiple bc's running much faster
if [ -z "${g_bc_running}" ] if [ -z "${g_bc_running}" ]
then then
g_rnd=$RANDOM g_rnd=$$
mkdir -p ${g_tmp}/${g_rnd} mkdir -p ${g_tmp}/${g_rnd}
[ -p ${g_tmp}/${g_rnd}/bc-in ] || mkfifo ${g_tmp}/${g_rnd}/bc-in [ -p ${g_tmp}/${g_rnd}/bc-in ] || mkfifo ${g_tmp}/${g_rnd}/bc-in
[ -p ${g_tmp}/${g_rnd}/bc-out ] || mkfifo ${g_tmp}/${g_rnd}/bc-out [ -p ${g_tmp}/${g_rnd}/bc-out ] || mkfifo ${g_tmp}/${g_rnd}/bc-out