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
fpr
converts Fortran carriage control to normal
ascii - the output is then piped to the lpr
command which sends
output to the default printer. Note that the execution bit of such
scripts must be set using chmod
before ASTERIX can use them.
Another example - you have a printer with a queue
called 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'
a2ps
first, in which case we write a script, eg.
uses#!/bin/csh a2ps $1 -nn -p | lpr -Pps -h
a2ps
to 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