ipqps2lib This program converts TEXTPORTER style QPS input files into the FIP style Library header. Normally it works on a spooled queue - spool/qps2lib - and assumes the file is being sent over the network - so applies a file wait of 10 seconds. The file is processed and sent to spool/xchg with a filename of : #SN:origfilename#CX:qps2lib#CP:2lib#DA:all which will get 'ipxchg' to force the output file through the QPS2LIB xchg. After the xchg, the resultant file is slotted into spool/2lib for processing bu 'iplib' or some onther destination. If the incoming filename has the syntax 'name@client', then a the DA field will be filled in with the client name and the transmission sent to them alone. A Parameter file - tables/setup/QPS2LIB contains other settings : ; comment line pub: define Publication codes and Names to use pub:goa The Guardian pub:obs The Observer This is the 'publication' attribute to the 'page' tag. section: define Section codes and Names to use section:cit key:c name:City Desk section:metro key:m name:Metro Desk section:fun key:o name:Obituaries This is the 'section' attribute to the 'page' tag. paragraph: Replacement for the <p> tag. default:\n eg paragraph:\r\n Input parameters are : Optional : -1 : filename for a single shot (ie no spooling). def: spool This does NOT delete the input file. The output file is created as normal in the output queue. -i : input queue default: spool/qps2lib -o : output queue default: spool/xchg -d : done queue default: none -f : extra Fip header information default: none -t : scan time of directory default: 5 secs -x : name of xchg to use default: qps2lib -X : name of next queue after xchg default: spool/2lib -w : network wait time for files default: 10 secs -p : print/display items thru default: no -l : do NOT log every incoming file default: log -E : String of tags also considered Text. default: "tx sf" Where you specify more than one, add a spc between and put double quotes around all. -b : String used as Start of New Article. default: "article" -z : name of parameter file if not default default: setup/QPS2LIB -v : display version number and exit. On installation pls remember to clean down the input queue every night for files ending with an underscore. # TextPorter temp file if [ -d $SPL_DIR/textporttrigger/TextQPS2Lib ]; then /bin/rm -fr $SPL_DIR/textporttrigger/TextQPS2Lib/.rsrc /bin/rm -fr $SPL_DIR/textporttrigger/TextQPS2Lib/(STAR)_ .. where (STAR) is * fi All markup/anything commented out is within 376-377 markers - use ipxchg to allow/strip In the Header these are QCOMM. In data these are Notes Modes. (copyright) 2018 and previous years FingerPost Ltd.