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