Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: What "isatty"? Message-ID: <17659@mimsy.UUCP> Date: 21 May 89 23:44:47 GMT References: <2421@Portia.Stanford.EDU> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 27 In article <2421@Portia.Stanford.EDU> joe@hanauma (Joe Dellinger) writes: > I have a graphics driver program which has 2 basic behaviours. >If you do > pspen < plot.data > file >it writes postscript code to "file". If you do > pspen < plot.data >it spools the postscript for you. Yuck. Programs that produce output should produce the output to stdout. If they will rarely be used to write to anything but the spooler, they should be given a less-accessible name and the program the user runs should be a shell script: real-pspen < plot.data | lpr -Pfoo In particular, the method by which one spools something to a particular printer is *very* system dependent%. For instance, we use MDQS; UCB uses Berkeley lpr; some people use SysV lpr; and once we used a local spooler. All of these are nicely incompatible. ----- % At least, if you will accept degrees of system dependency, spoolers are near the top :-) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris