Download Suprtool 5.4 for HP-UX

Transcript
# If so, send the "failed" return string to the CGI script
# including the name of the logfile
#
if [ $? -eq 1 ]
then
echo failed=$temp_sxlog
exit 1
else
#
# Everything worked fine.
# Send the "OK" return string to the CGI script
# including the name of the HTML file name.
#
echo OK=$temp_stexpdata.html
rm $temp_sxlog
> /dev/null
rm $temp_sxdata
> /dev/null
exit 0
fi
fi
Perl Script
With such a simple example, we could have written the shell script a bit differently
and then used it as a CGI script. However, shell scripts do not have enough features
to easily handle parameters or complex forms.
Instead, it is typical to use another language as an intermediate step. One of the most
popular CGI scripting languages is Perl. Perl has a full set of string handling
functions and can be combined with graphics libraries available from various
sources.
Let us call this one sx_orders.pl. It must reside in the directory defined in the server
configuration file.
Suprtool 5.3 for HP-UX User Manual
STExport Commands • 261