home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5209 < prev    next >
Encoding:
Text File  |  1992-11-08  |  906 b   |  25 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!boulder!kinglear!crosby
  3. From: crosby@kinglear.cs.colorado.edu (CROSBY MATTHEW JAME)
  4. Subject: Help with re-directing stdout
  5. Message-ID: <1992Nov8.050457.14182@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: kinglear.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. Date: Sun, 8 Nov 1992 05:04:57 GMT
  10. Lines: 13
  11.  
  12. I have writte a program that opens a pipe, forks and dup2's the input side of
  13. the pipe to stdout (file 1).  I can write through the pipe fine by write(1,...)
  14. but I can't use any higher level commands--printf(), putchar(), etc.  The data
  15. just seems to disapear...   Am I screwing up somewhere?
  16. I have made sure the pipe buffers, etc etc...
  17.  
  18. (If it is any help, I am using HP-SUX...er, HP-UX)
  19.  
  20.  
  21. -- 
  22. -Matt
  23. Mere anarchy is loosed upon the net!!!!
  24. mcrosby@nyx.cs.du.edu     or     crosby@cs.colorado.edu
  25.