home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / programm / 4527 < prev    next >
Encoding:
Text File  |  1992-09-02  |  983 b   |  26 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!uunet.ca!geac!r-node!singh
  3. From: singh@r-node.gts.org (Rajendra Singh)
  4. Subject: Re: Unix Programming Question
  5. Message-ID: <1992Sep03.022923.20256@r-node.gts.org>
  6. Keywords: Unix
  7. Organization: Public Access UNIX Information System
  8. References: <1571@dcsc.dla.mil> <hawkeye.715300231@glia>
  9. Date: Thu, 03 Sep 1992 02:29:23 GMT
  10. Lines: 14
  11.  
  12. In article <hawkeye.715300231@glia> hawkeye@glia.biostr.washington.edu (Ken Keys - TF Dude) writes:
  13. >The error messages are printed on standard error, but you only redirected
  14. >standard output.  Assuming your system() uses /bin/sh,
  15. >
  16. >      system("ls -l /path1/??/n???????.?? > /path2/upload.lst 2>&1")
  17.  
  18. How about:
  19.  
  20.        system("ls -l /path1/??/n???????.?? > /path2/upload.lst 2>/dev/null")
  21. -- 
  22. Raj (singh@r-node.gts.org)  If you wish to reply by E-Mail and your response
  23. is greater than 100 lines (or 15K), then please send your response to:
  24.                     tcomsing@chasm.scar.utoronto.ca
  25.  
  26.