This command is just a very simple csh script,csh> setenv AST_FORTRAN_SPOOL /star/asterix/bin/ast_fortran_spooler
The UNIX utility#!/bin/csh fpr $1 | lpr
fprconverts Fortran carriage control to normal ascii - the output is then piped to the
lprcommand which sends output to the default printer. Note that the execution bit of such scripts must be set using
chmodbefore ASTERIX can use them.
Another example - you have a printer with a queue
psa and you want to send ascii output to it. If the printer
can take ascii directly you might use,
If it has Postscript queue then we might want to do a bit of formatting usingcsh> setenv AST_LIST_SPOOL 'lpr -Ppsa -h'
a2psfirst, in which case we write a script, eg.
uses#!/bin/csh a2ps $1 -nn -p | lpr -Pps -h
a2psto in portrait mode, with line numbers suppressed.
If you use any of these facilities frequently then customise your ASTERIX setup to define them when you start up ASTERIX. The current settings can be displayed using the commands,
csh> astdefs spool csh> astdefs all