Next: Technical Talk
Up: Immediate Plot Command Files
Previous: OpenVMS
#!/bin/sh
echo
echo "Femsys Ltd Immediate Plot Facility"
echo "==================================="
echo
# Parameters:
# ----------
#
# $1 - The name of the file to be plotted
# $2 - The format of the plotfile
# 0 - screendump
# 1 - Neutral
# 2 - Postscript Mono
# 3 - Interleaf
# 4 - Postscript Colour
# 5 - Laserjet
# 6 - Paintjet
# 7 - HPGL
# 8 - HPGL/2
# 9 - Deskjet
# 10 - CGM
# 11 - TIFF
#
# Description
# -----------
#
# Only screen dump and Postscript files will be printed.
#
echo Your plotfile is called $1
case $2 in
0) echo and it is a screen dump file;
pr $1 > /dev/image_printer;;
1) echo and it is in Femview neutral format;
echo Plotfile will not be printed;;
2) echo and it is in Postscript format;
pr $1 > /dev/postscript_printer;;
3) echo and it is in Interleaf format;
echo Plotfile will not be printed;;
*) echo File type $2 is not supported;
echo Plotfile will not be printed;;
esac