Rev 5753 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | reyssat | 1 | #! /bin/sh |
2 | |||
3 | # You must modify this to suit your environment |
||
4 | ODEDRAW=bin/draw..ode |
||
5 | |||
6 | if [ "$wims_exec_parm" = "" ] || [ "$s2_dir" = "" ] || [ ! -d $s2_dir ] ; then exit ; fi |
||
7 | |||
8 | tstamp=`date '+%s'` |
||
9 | set $wims_exec_parm |
||
10 | out_fname=$s2_dir/ode-$1.gif |
||
11 | params=$2 |
||
12 | |||
13 | if [ "$wims_exec_parm" = "about" ] ; then |
||
14 | echo `$ODEDRAW -v 2>&1` |
||
15 | exit 0 |
||
16 | fi |
||
17 | |||
18 | rm -f $out_fname |
||
19 | $ODEDRAW -o $out_fname -f 2 -p $params > /dev/null 2>&1 |
||
20 | if [ -f $out_fname ] ; then |
||
21 | src="wims.cgi?session=$w_session&cmd=getins&special_parm=ode-$1.gif&modif=$tstamp" |
||
17347 | bpr | 22 | echo "<img src=\"$src\" border=1 alt=\"ODE phase graph\">" |
14 | reyssat | 23 | fi |
24 |