ASTERIX applications create printable output files in a number of forms. Each of these forms has a name,
This command is just a very simple csh script,csh> setenv AST_FORTRAN_SPOOL /star/asterix/bin/ast_fortran_spooler
The UNIX utility 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.#!/bin/csh fpr $1 | lpr
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 using a2ps first, in which case we write a script, eg.csh> setenv AST_LIST_SPOOL 'lpr -Ppsa -h'
uses a2ps to in portrait mode, with line numbers suppressed.#!/bin/csh a2ps $1 -nn -p | lpr -Pps -h
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