|
January 2002 Get the most out of
your Robelle Tools invent3k.external.hp.com/~MGR.HIRSCH/MPE-Suprtool-0.5.tar.gz And read more about it at: invent3k.external.hp.com/ ~MGR.HIRSCH/Suprtool.html To install the Suprtool extension, you also need the gcc compiler tools. Ken Hirsch has instructions for how to install his packages at invent3k.external.hp.com/ ~MGR.HIRSCH/perlinst.html
From
Ken’s documentation file, here is a sample Suprtool task in Perl
and some explanation of the functions provided: The extension provides three functions: new, cmd and lastcmd. new ( [args] ) — Creates a new Suprtool object. new optionally takes arguments; these arguments are in key-value pairs and define the execution priority and the XL location of the Suprtool2 subroutine. For example: my $supr =
MPE::Suprtool->new( printstate => ‘AL’, pri =>
‘CS’) cmd( @list ) — cmd submits a command or list of commands to Suprtool. This is a list of strings, which can be an array variable, string literals, a list of scalar string variables, or just about any combination. The normal Perl rules apply, so if you want to say OUTPUT $NULL you’ll need to use single quotes ‘OUTPUT $NULL’ or escape the $ in double quotes: ``OUTPUT \$NULL’’ Of course, sometimes you want to interpolate a variable. The commands are only executed when there’s an ``EXIT’’ in a string by itself. Each command string can be up to 256 characters long. You can combine commands in one string by separating them with a semicolon. The following all have the same effect: $supr->cmd(“INPUT
FILE1; KEY 1,4; OUTPUT FILE2”, “EXIT”); Lastcmd — The last command executed. If cmd is passed a list, it will stop on any command giving an error. Some syntax errors will be caught on the command containing the error, but most errors will only get caught on the ‘EXIT’ command, so this is of limited utility. So now you have a great excuse to install Perl on your HP 3000 and learn it – you can use it to execute Suprtool tasks! Copyright The 3000 NewsWire. All rights reserved. |