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