Xref: utzoo comp.sys.ibm.pc.programmer:2743 comp.unix.programmer:1970 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!levels!ccdps From: ccdps@levels.sait.edu.au Newsgroups: comp.sys.ibm.pc.programmer,comp.unix.programmer Subject: Detecting invalid files in printer queues Message-ID: <16440.284a60ad@levels.sait.edu.au> Date: 3 Jun 91 06:00:53 GMT Organization: University of South Australia Lines: 21 Does anyone have some code which they use to filter files to be printed, rejecting those that are invalid according to some set of criteria? We are looking for something to filter the queues on our PC LAN, and it seems that there is no reason why the same code should not work under Unix too. (Could be either C code or an awk/grep type solution.) It is just possible that it might also work under VMS as well. There are various ways to specify what is a valid file, including pattern matching and statistical distributions of characters, and combinations of these. If anyone has heard of or has available anything along these lines I'd be glad to hear from them via email. Thanks, -- Dan Shearer email: Dan.Shearer@lux.sait.edu.au Computer Centre Phone: +61 8 343 3479 University of South Australia Fax : +61 8 349 4213