edouard@3543: #!/bin/bash edouard@3543: edouard@3543: # Run python example throug command line, and check usual output edouard@3543: edouard@3543: coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home ~/src/beremiz/exemples/python build transfer run; edouard@3543: edouard@3543: while read -u ${COPROC[0]} line; do edouard@3543: echo "$line" edouard@3543: if [[ "$line" == *Grumpf* ]]; then edouard@3543: pkill -9 -s $COPROC_PID edouard@3543: exit 0 edouard@3543: fi edouard@3543: done edouard@3543: edouard@3543: exit 42