source:
test/test.sh@
452:c838eb728031
Last change on this file since 452:c838eb728031 was 163:b42982058cb2, checked in by , 13 years ago | |
---|---|
|
|
File size: 283 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | scriptdir=`dirname $0` |
4 | sim="${scriptdir}/../src/mlx/pyuipc_sim.py" |
5 | |
6 | host="localhost" |
7 | if test $# -gt 1; then |
8 | host=$2 |
9 | fi |
10 | |
11 | oldIFS="${IFS}" |
12 | IFS=$'\n' |
13 | for line in `cat $1`; do |
14 | read -p "$line" |
15 | echo $line | python "${sim}" "${host}" >/dev/null |
16 | done |
17 | IFS="${oldIFS}" |
Note:
See TracBrowser
for help on using the repository browser.