Many thanks to all for the replies. I am not a developer. I'm a z/OS sysprog
who happens to know programming, in general. And z/OS programming at that. In
this particular case, of writing binary non-displayable data, use of stdout
appears to be contraindicated. So, I'll just keep my current
As to options, I just like the GNU --english version. For some standard
options, I may use the UNIX norm of a single dash with a single character.
I'll also see if there is a Java version of getopt.
GNU uses a thing called getopt_long which is an extended getopt. They
were ported to GNU Java
I know this forum is mainly for support type questions. I.e. how to. Does
anybody know of a good, relatively polite, forum for asking questions about
software development on and for Linux?
Having said the above, the following is an example of the type of question that
I have in mind.
One of
McKown, John wrote:
Is there a convention for using stderr in place of an output file name? Or is it not
expected to want to direct file type output to stderr?
Very common use case, usually handled not by the command but by the
shell that launches it, e.g.,
ls 12
in sh bash and ksh
stderr is filehandle 2. To redirect it to a file use 2 on the command
line:
$ command filein fileout 2errout
McKown, John wrote:
I know this forum is mainly for support type questions. I.e. how to. Does
anybody know of a good, relatively polite, forum for asking questions about software
-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On
Behalf Of Rich Smrcina
Sent: Wednesday, December 02, 2009 10:48 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux software development question
stderr is filehandle 2. To redirect it to a file use 2
-390@VM.MARIST.EDU
Subject: Re: Linux software development question
stderr is filehandle 2. To redirect it to a file use 2 on
the command
line:
$ command filein fileout 2errout
I must have said what I want to do exactly backwards. I don't want to
direct stderr to a file. I want
McKown, John wrote:
app in1 in2 in3 output.file
would become
app in1 in2 in3 /dev/fd/2
and I could do an fopen() on that, or just detect that as my convention and use
file descriptor 3 directly. Stick me with a fork, I'm done!
Would look bizarre to an experienced user.
These sorts of
] On
Behalf Of Rich Smrcina
Sent: Wednesday, December 02, 2009 10:48 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux software development question
stderr is filehandle 2. To redirect it to a file use 2 on
the command
line:
$ command filein fileout 2errout
I must have said what I want
-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On
Behalf Of Christian Paro
Sent: Wednesday, December 02, 2009 11:24 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux software development question
If this is an application you wrote, why not just have
-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On
Behalf Of Michael Holzheu
Sent: Wednesday, December 02, 2009 11:37 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux software development question
Hi John,
You could add an option -O to your
McKown, John wrote:
-Original Message-
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On
Behalf Of Christian Paro
Sent: Wednesday, December 02, 2009 11:24 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux software development question
If this is an application you wrote, why
12 matches
Mail list logo