{"id":3335,"date":"2014-10-25T00:34:49","date_gmt":"2014-10-25T00:34:49","guid":{"rendered":"http:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/ipprint\/"},"modified":"2014-10-25T00:34:49","modified_gmt":"2014-10-25T00:34:49","slug":"ipprint","status":"publish","type":"page","link":"https:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/ipprint\/","title":{"rendered":"ipprint  (Sat Oct 25 2014 01:31:01)"},"content":{"rendered":"<pre>\nipprint\n\nThis program loops around a queue and sends files to a printer\/screen attached\nto either a Spider port or a TTY.\n\nIf a TTY port is used, it may be configured using a file in\ntables\/stty\/STTY_PRINTER_ttyx where x is the tty port name.\n\nThe parameters may be either specified as Input switches or as keyword options\nin a parameter file - or both to confuse everybody.\n\nThere is no default parameter file but if one is specified, using the '-Z'\ninput switch, it should be in tables\/print.\n\nNote that normally the 'DF:' header field is ignored. If the '-F' input switch\nis specified the DF will be looked for and used as the name of the parameter\nfile in tables\/print. If it does not exist, the default is used; if there is no\ndefault specified (with the '-Z' input switch), the normal default\n'tables\/print\/FORMAT' is used.\n\nSyntax for the parameter file are :\n\t; comment\n\theader:\tFIP seq for the header of the file\tdefault: none\n\ttrailer: file trailer eg to force a page throw\tdefault: none\n\tpage:\tpage header within a file\t\tdefault: none\n\t\tif this option is specified, the page number CRNL\n\t\tis added automatically.\n\ttoppage: Used in place of the automatic CRNL after page number\n\t\t\t\t\t\t\tdefault: CR NL\n\teoln:\tend-of-line sequence in place of CR, CR NL or NL.\n\t\t\t\t\t\t\tdefault: CR NL\n\tnostrip: do not strip multiple CR\/LF\tdefault: strip multiple eolns\n\twidth:\tprinter width\t\t\t\tdefault: ignored\n\tdepth:\tprinter page depth\t\t\tdefault: ignored\n\tabstract: no of lines to print the abstract\tdefault: print all text\n\t\tAn abstract of zero - abtract:0 - will print no text.\n\t\tIn this case, only banner, page and trailer will be printed.\n\tignore: ignore all text after this chr\t\tdefault: print all text\n\t\tUse 32 to ignore the header of a Writer file\n\twait:\twait in secs before printing the file\tdefault: none\n\tendwait: wait in secs after printing the file\tdefault: none\n\tdisconnectwait: wait in secs before disconnecting\tdefault: 3 secs\n\t\tfrom the remote host. This is on 3 for as many devices\n\t\tneed a moment to drain responses.\n\tendstring: wait for this string after printing the file.\tdefault: none\n\t\tIf this string exists, the endwait is used as a timeout if the string\n\t\tdoes NOT return. The default endwait is 20 secs in this case.\n\t\tThe string is case insensitive.\n\tspeed: pace the file as though it is being printed at this speed.def: none\n\toffline: If Offline : wait in secs between attempts\tdefault: 60 secs\n\tnodelete: Do NOT delete the files once sent\tdefault: delete.\n\twordwrap: wordwrap\t\t\tdefault: do NOT wordwrap lines\n\tbanner: print this banner in place of the normal one\n\t\tif Nothing is specified, no banner will be printed.\n\t\tie 'banner:' on a line on its own.\n\t\t\tdefault: banner of name, category, date and time\n\tscan:\ttime between scans of directory\t\tdefault: 5 secs\n\tnetwork: Script to run on file after processing. In this case the file\n\t\tis processed as per width etc and then run as the\n\t\tlast parameter to this script. Any TTY port or Terminal\n\t\tserver is ignored.\t\t default: TTY or spider\n\t\teg to use a unix printer in \/etc\/printcap called Training :\n\t\t\tnetwork:lpr -P Training\n\t\tThe temp file created is NOT deleted by ipprint and so either\n\t\tthe script should delete the file or some means of maintenance.\n\t\tThis temp file is created in \/fip\/spool\/printtmp.\n\tsingleshot: run through the queue once and stop.\tdefault: spool\n\t\tThis is used when ipprint is called from a script to\n\t\tsend all copy from a single queue.\n\tgrab-first-file: Always process the first file in the queue first.\n\t\tThis is for WinNT\/2000 which sorts alphabetically\/timewise.\n\tfirst:\tName of optional file in tables\/print that is sent\n\t\ton startup and on each scan of the queue when a new file has\n\t\tbeen found.  The text of the file is in FipSeq. default:none\n\tlast:\tName of optional file in tables\/print that is sent when all the\n\t\tfiles in the queue have been sent and before we rescan the\n\t\tqueue.  The text of the file is in FipSeq.\tdefault:none\n\tbinary:\tThe files are already in the correct format so no page, wordwrap\n\t\twidth, depth  and eoln is necessary\t\tdefault: no\n\talldata: Print all data - normally unprintable (for the Unixbox)\n\t\tchrs are stripped from the outbound data. default:printables\n\tpchr:\tPrecedent chr for modes.\t\t\tdefault: none\n\tmode:\tMode Strings\n\t\teg Select Univers 9 pt for HP Laserjet\n\t\tmode:0\t33(s4148t(s7v(s0p(s0S33(s0B\n\textras: Extra chrs which are not normally a-z or 0-9 or normal\n\t\tprintable chrs. These are often accented chrs specific to a\n\t\tparticular printer that are different from the UnixBox LOCALE\n\t\t(see man pages)\t\t\t\t default: none\n\t\tExample if octals 221 and 342 are e acute and E acute for\n\t\tprinter X :\textras:221342\n\tescape: Printer Escape chr and length of escape seq (optional).\n\t\tThis is used to ignore fixed length escape sequences in the\n\t\ttext which play havoc with line lengths\t default: none\n\t\tExample to ignore an ESC plus following chr:\tescape:33:1\n\textra-fiphdr: (FipSeq)\textra FipHdr information to add to each transmission\n\t\t\t\t\t\t\tdefault: none\n\tonefile: Send One file per go and then release the connection and wait\n\t\tbefore sending the next.  default: send all files in the queue.\n\tlogfile: Log file name\t\t\t\tdefault: none\n\t\tThis should be the full path and filename of the the log file.\n\t\tThe contents of the Log file are preserved and appended to.\n\tlog-line: Fip Item Log entry\t\tdefault: filename is logged only\n\tkeep-connection: Normally if there is nothing to send, the connection\n\t\tto the output device is dropped (top allow another program to\n\t\tconnect perhaps). This flag states that this copy of the program\n\t\thas full-use of the device - so keep the connection alive.\n\t\tkeep-connection:\twill leave the connection open\n\t\tkeep-connection:no\twill disconnect\n\t\tkeep-connection:yes\twill leave the connection open\n\tkeep-alive-timeout:(number of secs)\n\tkeep-alive-token: (FipSeq string)\n\t\tIf there is NO data after the katimeout, send out the token\n\t\tdefault is nothing\n\tbalance-seqno:  Send the Sequence number to this Balance Group\n\t\t(see 'ipbalance') Use this to make sure the sequence number\n\t\tis always updated on any companion systems.\n\tbalance-delete: Send a note for ipbalan\/ipsvrd to delete the mirrored\n\t\tfile on any remote server.\n\tpad-before: Send a number of padding chars before each file\n\tpad-chr: actual chr to send - default is SPACE.\n\tpad-count: Number of pad chrs to send if 'pad-before' has been specified\n\t\tdefault is pad-count:80\n\t\tmaximum is 2048\n\tdump-data: This makes a copy in \/fip\/dump of all incoming raw data\n\n\tbefore: (fipseq)\t\t(eoln)\n\t\t\tString to insert before the data (binary option only)\n\tafter:  (fipseq)\t\t(eoln)\n\t\t\tString to insert after the data (binary option only)\n\tfilebefore:\t(filename)\t(eoln)\n\t\t\tFile of FipSeq to insert before the data (binary option only)\n\tfileafter:\t(filename)\t(eoln)\n\t\t\tFile of FipSeq to insert after the data (binary option only)\n\tbinary-filebefore: (filename)\t(eoln)\n\t\t\tFile to insert before the data (binary option only)\n\tbinary-fileafter:  (filename)\t(eoln)\n\t\t\tFile to insert after the data (binary option only)\n\tlock-sleep: (millisecs)\t\tdefault: 50\n\tlock-loops: (no of loops)\tdefault: 20\n\t\t\tIf an input big file (normally WINNT) is being copied\n\t\t\tover, use this to grab the file quickly\n\ttiming-stats: (yes\/no)\tTurn on\/off timing statistics\n\ttracker-script: Optional script for tracking purposes (fullpath to script\nname)\n\t\tdefault: none\n\n\nWhere sections of FipHdr fields are required or changes to the output style,\nuse keywords : fixed, partial, combie, optional, repeat, newdate and\/or style.\n(see The SysAdmin manual for more information).\n\n\tThey are normally specified :\n\t\tfixed:QZ\t1234543\n\t\tpartial:QT\tST,3,2,U,&lt;,&gt;\n\t\tcombie:QY\tep|na,(0000000)a\n\t\toption:QE\tep,11,7,s\n\t\trepeat:QK\tXK,-,3\n\tor\trepeat:QP\tPK,,4,#X\n\t\tstyle:QS\tXN,%.03d\n\t\tnewdate:\n\t\treplace:\n\nInput Parameters are :\n\tMandatory parameters :\n\t-s : output device\t\t\t\tdefault: none\n\t\tunless 'network' or script' parameters are stated.\neither\t-p : terminal server port number\t\tdefault: none\nor\t-P : passive TCP port number\t\t\tdefault: none\n\t\tfor incoming calls\n\t-q : queue to scan for input\t\t\tdefault: none\n\t\tThis can be specified as a queue under \/fip\/spool or\n\t\tif it starts with a '\/', the complete pathname. Note that in\n\t\tthe second case, the queue MUST reside in the same partition\n\t\tas spool.\nOR\t-1 : name of file to send where we are sending a single file. def:none\n\t\tThis can be specified as a queue under \/fip\/spool or\n\t\tif it starts with a '\/', the complete pathname. Note that in\n\t\tthe second case, the queue MUST reside in the same partition\n\t\tas spool. The input file is NOT deleted in this case.\n\nOptional parameters :\n\t-a : abstract : no of lines to print\t\tdefault: print all text\n\t-b : print this banner in place of the normal one\n\t\t\tdefault: banner of name, category, date and time\n\t-B : do not output a banner at all\t\tdefault: as above\n\t-c : do not strip multiple CR\/LF\tdefault: strip multiple eolns\n\t-e : end-of-line sequence in place of CR, CR NL or NL.\n\t\t\t\t\t\tdefault: print eoln as in text\n\t-f : page header within a file\t\t\tdefault: none\n\t-F : Use the DF header field for all parameters. default: no\n\t\tThis option ignores any formatting input parameters like -e,-h\n\t-h : file header\t\t\t\tdefault: none\n\t-H : extra FipHdr information to add to each transmission\n\t\teg -H '#RH:localhost#RP:9699'\t\tdefault: none\n\t-i : ignore all text after this chr\t\tdefault: print all text\n\t\tUse -i 32 to ignore the header of a Writer file\n\t-I : dump id - add a dump id to the dump file\tdefault: no\n\t\tuse this where multiple ipprint using the same parameter file are used.\n\t-k : keep the connection open\t\t\tdefault: close after all files\n\t\tThe default for -P passive port is to hold the connection open\n\t\tanyway until the REMOTE side wishes to disconnect.\n\t\tIn this case to disconnect, use a parameter file with\n\t\t\t&quot;keep-connection:no&quot;\n\t\tor\t&quot;onefile:&quot;\n\t-K : file should be sent binary\t\t\tdefault: no\n\t\tThis options ignores all formatting commands\n\t\tsuch as -h, -t, -f, -e, -w, -l etc\n\t-l : printer page depth\t\t\t\tdefault: ignored\n\t-L : log each file as it is printed\t\tdefault: no\n\t-N : log each network script as it is run\tdefault: no\n\t-o : output queue for printed files\t\tdefault: no\n\t\tNormally files are deleted after printing.\n\t\tunless the 'nodelete:' parameter has been selected.\n\t-r : wordrap\t\t\t\tdefault: do NOT wordwrap lines\n\t-t : file trailer eg to force a page throw\tdefault: none\n\t-w : printer width\t\t\t\tdefault: ignored\n\t-W : max word size for wordwrap\t\t\tdefault: 9\n\t-x : wait in secs before printing the file\tdefault: none\n\t-X : If Offline : wait in secs between attempts\tdefault: 60 secs\n\t-z : time between scans of directory\t\tdefault: 5 secs\n\t-Z : parameter file\t\t\t\tdefault: none\n\t-v : print version no and exit\n\nIn all cases where not mentioned, text is printed with no modications unless\nforced.\n\nParameters h, t, e, b and f can be any combination of fixed text, octal number\n(03), FIP hdr field (XN or SU) and unix escape format (r). Pls remember to\nenclose these with double quotes.\n\n\n(copyright) 2014 and previous years FingerPost Ltd.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ipprint This program loops around a queue and sends files to a printer\/screen attached to either a Spider port or a TTY. If a TTY port is used, it may be configured using a file in tables\/stty\/STTY_PRINTER_ttyx where x is the tty port name. The parameters may be either specified as Input switches or as [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":495,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"page-templates\/full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3335"}],"collection":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/comments?post=3335"}],"version-history":[{"count":0,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3335\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/495"}],"wp:attachment":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/media?parent=3335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}