#!/bin/sh # # Produce HTML header # echo Content-type: text/html echo cat ../head.shtml # # Set the path # PATH=$PATH:/user/altim/bin export PATH # # In case no query string is given, print the manual # if [ "$QUERY_STRING" != "" ] ; then # # Evaluate the input arguments (query string) # eval `echo $QUERY_STRING | tr '&' ';'` # # If start time is not typed in, construct it from the selection buttons # if [ "$t0" = "" ] ; then t0=$year0$month0$day0$hour0$min0$sec0 fi # # If the time step is not typed in, take the one from the selection botton # if [ "$dt" = "" ] ; then dt=$dtsel fi # # If the total time is not typed in, construct it from the selection buttons # if [ "$tt" = "" ] ; then tt=`expr $ttday \* 86400 + $tthour \* 3600 + $ttmin \* 60 + $ttsec` fi # # Construct the end date from t0 and tt # t1=`convdate ymd=$t0 offs=$tt +ymd` # # Determine the selection string from cut # cut=-c${time:-0},${errf:-0},${geod:-0},${xyz:-0} # # Print the rest of the result # cat <<%
\$ getorb ymd=$t0,$t1,$dt /home/ers$satid/ODR
% ( getorb ymd=$t0,$t1,$dt /user/remko/ers/ODR.ERS-$satid/latest | cut $cut ) 2>/dev/null echo "
The syntax of this command is:
% getorb cat <<%% cat ../tail.shtml