Re: Finding out the active Unix shell
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Thu, 07 Jun 2007 13:42:50 +0100
On Thu, 07 Jun 2007 09:07:54 -0000, in comp.lang.c , Tom Gur
<gur.tom@xxxxxxxxx> wrote:
Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
The answer is unfortunatly still the same. You need to ask the
specialists in your os and /or compiler, since C itself has no
facilities for doing this. Most probably there's a function called
getenv() or something similar provided by your platform.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- Follow-Ups:
- Re: Finding out the active Unix shell
- From: Mark McIntyre
- Re: Finding out the active Unix shell
- References:
- Finding out the active Unix shell
- From: Tom Gur
- Re: Finding out the active Unix shell
- From: Keith Thompson
- Re: Finding out the active Unix shell
- From: Tom Gur
- Finding out the active Unix shell
- Prev by Date: Re: Convert from unsigned char array to float!
- Next by Date: Re: expression and evaluation order and precedence rules
- Previous by thread: Re: Finding out the active Unix shell
- Next by thread: Re: Finding out the active Unix shell
- Index(es):
Relevant Pages
|