home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / wizards / 5323 < prev    next >
Encoding:
Text File  |  1992-12-23  |  846 b   |  19 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sal.wisc.edu!alan
  3. From: alan@sal.wisc.edu (Alan Watson)
  4. Subject: Re: /dev
  5. Message-ID: <1992Dec23.061129.21929@sal.wisc.edu>
  6. Organization: Space Astronomy Lab, Madison WI
  7. References: <1h3m36INNd4l@usenet.INS.CWRU.Edu> <1h57c2INNhsi@chnews.intel.com> <1h8u8sINNdcj@usenet.INS.CWRU.Edu>
  8. Date: Wed, 23 Dec 1992 06:11:29 GMT
  9. Lines: 8
  10.  
  11. In article <1h8u8sINNdcj@usenet.INS.CWRU.Edu> cq377@cleveland.Freenet.Edu (David C. Williss) writes:
  12. >
  13. >Thanks for all the suggestions.  popen looks like my best bet.  Unless
  14. >somebody can give me advice on how to determine which to use (lp/lpr),
  15. >I'll just make it an option.  
  16.  
  17. Well, you might try to popen("lpr"), and if that fails then try to
  18. popen("lp").  That should work if at least one of them is available.
  19.