changeset 3543 | 6210c08c1c41 |
child 3719 | 4906295e0be6 |
3542:c1d627434cd1 | 3543:6210c08c1c41 |
---|---|
1 #!/bin/bash |
|
2 |
|
3 # Run python example throug command line, and check usual output |
|
4 |
|
5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home ~/src/beremiz/exemples/python build transfer run; |
|
6 |
|
7 while read -u ${COPROC[0]} line; do |
|
8 echo "$line" |
|
9 if [[ "$line" == *Grumpf* ]]; then |
|
10 pkill -9 -s $COPROC_PID |
|
11 exit 0 |
|
12 fi |
|
13 done |
|
14 |
|
15 exit 42 |