#!/bin/bash if [ ! -f /tmp/pipe_bc ]then echo > /tmp/pipe_bcfi bc < /tmp/pipe_bc & > /tmp/pipe_bc while :do read CMD [[ "$CMD" == quit ]] && echo quit && break echo -e $CMDdone > /tmp/pipe_bc