> -----Original Message----- > From: Linux on 390 Port [mailto:[email protected]] On > Behalf Of Christian Paro > Sent: Wednesday, December 02, 2009 11:24 AM > To: [email protected] > Subject: Re: Linux software development question > > If this is an application you wrote, why not just have it > write to stdout > and then redirect its output at the shell to wherever you > want to put it. In > other words, instead of: > > `app in1 in2 in3 output.file` > > you'd have > > `app in1 in2 in3 > output.file` (to output to a file named > "output.file") > > or > > `app in1 in2 in3 1>&2` (to output to stderr) >
Good question. I guess because the program is really writing out binary data, not something that should be directed to the screen. Which, of course, begs the question: "then why have a way to write it to stderr?" I can see writing it to stdout so that you could pipe it into something else, without an intermediate "temporary" file. But my main question was about standard conventions and is there one for using stderr in a parm list where a file name is normally used and required. As a - is used for either stdin or stdout, whichever applies in the context. Is there a web site which detail "standard conventions"? -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell [email protected] * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
