comp.lang.ada
 help / color / mirror / Atom feed
* platform specific question
@ 2012-12-07 18:14 Hans Vlems
  2012-12-07 18:29 ` Jeffrey Carter
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Vlems @ 2012-12-07 18:14 UTC (permalink / raw)


C programs have easy access to commandline arguments and "environment
variables".
Is there a way to interpret the environment variables on a Windows
(2008 Server R2) platform?
What I'm looking for is the usercode that executes the program. Some
programs offer different functionality which is now derived from a
table that is organised by username/usercode.

Hans



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: platform specific question
  2012-12-07 18:14 platform specific question Hans Vlems
@ 2012-12-07 18:29 ` Jeffrey Carter
  2012-12-09 13:50   ` Hans Vlems
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey Carter @ 2012-12-07 18:29 UTC (permalink / raw)


On 12/07/2012 11:14 AM, Hans Vlems wrote:
> C programs have easy access to commandline arguments and "environment
> variables".
> Is there a way to interpret the environment variables on a Windows
> (2008 Server R2) platform?
> What I'm looking for is the usercode that executes the program. Some
> programs offer different functionality which is now derived from a
> table that is organised by username/usercode.

For command-line arguments, there's package Ada.Command_Line (ARM A.15, 
http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-15.html); 
for environment variables, package Ada.Environment_Variables (ARM A.17, 
http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-17.html).

Ada.Command_Line has existed since 1995; Ada.Environment_Variables came along in 
2007.

-- 
Jeff Carter
"I like it when the support group complains that they have
insufficient data on mean time to repair bugs in Ada software."
Robert I. Eachus
91



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: platform specific question
  2012-12-07 18:29 ` Jeffrey Carter
@ 2012-12-09 13:50   ` Hans Vlems
  2012-12-09 15:11     ` Bill Findlay
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Vlems @ 2012-12-09 13:50 UTC (permalink / raw)


On 7 dec, 19:29, Jeffrey Carter <spam.jrcarter....@spam.not.acm.org>
wrote:
> On 12/07/2012 11:14 AM, Hans Vlems wrote:
>
> > C programs have easy access to commandline arguments and "environment
> > variables".
> > Is there a way to interpret the environment variables on a Windows
> > (2008 Server R2) platform?
> > What I'm looking for is the usercode that executes the program. Some
> > programs offer different functionality which is now derived from a
> > table that is organised by username/usercode.
>
> For command-line arguments, there's package Ada.Command_Line (ARM A.15,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...
> for environment variables, package Ada.Environment_Variables (ARM A.17,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...).
>
> Ada.Command_Line has existed since 1995; Ada.Environment_Variables came along in
> 2007.
>
> --
> Jeff Carter
> "I like it when the support group complains that they have
> insufficient data on mean time to repair bugs in Ada software."
> Robert I. Eachus
> 91

Jeff, thanks for the pointers.
I stopped using ADA in 1984 or so and have only recently returned to
the language.
If only to discover that ADA has changed a lot in the mean time.
Hans



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: platform specific question
  2012-12-09 13:50   ` Hans Vlems
@ 2012-12-09 15:11     ` Bill Findlay
  2012-12-10 11:36       ` Hans Vlems
  0 siblings, 1 reply; 5+ messages in thread
From: Bill Findlay @ 2012-12-09 15:11 UTC (permalink / raw)


On 09/12/2012 13:50, in article
03f19861-e90d-4664-8f1b-02580aea84c0@e25g2000vbm.googlegroups.com, "Hans
Vlems" <hvlems@freenet.de> wrote:

> On 7 dec, 19:29, Jeffrey Carter <spam.jrcarter....@spam.not.acm.org>
> wrote:
>> On 12/07/2012 11:14 AM, Hans Vlems wrote:
>> 
>>> C programs have easy access to commandline arguments and "environment
>>> variables".
>>> Is there a way to interpret the environment variables on a Windows
>>> (2008 Server R2) platform?
>>> What I'm looking for is the usercode that executes the program. Some
>>> programs offer different functionality which is now derived from a
>>> table that is organised by username/usercode.
>> 
>> For command-line arguments, there's package Ada.Command_Line (ARM
>> A.15,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...
>> for environment variables, package Ada.Environment_Variables (ARM
>> A.17,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...
>> ).
>> 
>> Ada.Command_Line has existed since 1995; Ada.Environment_Variables came along
>> in
>> 2007.
>> 
>> --
>> Jeff Carter
>> "I like it when the support group complains that they have
>> insufficient data on mean time to repair bugs in Ada software."
>> Robert I. Eachus
>> 91
> 
> Jeff, thanks for the pointers.
> I stopped using ADA in 1984 or so and have only recently returned to
> the language.
> If only to discover that ADA has changed a lot in the mean time.


Indeed, but just as back in 1984, it is still named Ada, not ADA.

-- 
Bill Findlay
with blueyonder.co.uk;
use  surname & forename;





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: platform specific question
  2012-12-09 15:11     ` Bill Findlay
@ 2012-12-10 11:36       ` Hans Vlems
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Vlems @ 2012-12-10 11:36 UTC (permalink / raw)


On 9 dec, 16:11, Bill Findlay <yaldni...@blueyonder.co.uk> wrote:
> On 09/12/2012 13:50, in article
> 03f19861-e90d-4664-8f1b-02580aea8...@e25g2000vbm.googlegroups.com, "Hans
>
>
>
>
>
> Vlems" <hvl...@freenet.de> wrote:
> > On 7 dec, 19:29, Jeffrey Carter <spam.jrcarter....@spam.not.acm.org>
> > wrote:
> >> On 12/07/2012 11:14 AM, Hans Vlems wrote:
>
> >>> C programs have easy access to commandline arguments and "environment
> >>> variables".
> >>> Is there a way to interpret the environment variables on a Windows
> >>> (2008 Server R2) platform?
> >>> What I'm looking for is the usercode that executes the program. Some
> >>> programs offer different functionality which is now derived from a
> >>> table that is organised by username/usercode.
>
> >> For command-line arguments, there's package Ada.Command_Line (ARM
> >> A.15,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...
> >> for environment variables, package Ada.Environment_Variables (ARM
> >> A.17,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...
> >> ).
>
> >> Ada.Command_Line has existed since 1995; Ada.Environment_Variables came along
> >> in
> >> 2007.
>
> >> --
> >> Jeff Carter
> >> "I like it when the support group complains that they have
> >> insufficient data on mean time to repair bugs in Ada software."
> >> Robert I. Eachus
> >> 91
>
> > Jeff, thanks for the pointers.
> > I stopped using ADA in 1984 or so and have only recently returned to
> > the language.
> > If only to discover that ADA has changed a lot in the mean time.
>
> Indeed, but just as back in 1984, it is still named Ada, not ADA.
>
> --
> Bill Findlay
> with blueyonder.co.uk;
> use  surname & forename;- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Sure, especially today!



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-10 11:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07 18:14 platform specific question Hans Vlems
2012-12-07 18:29 ` Jeffrey Carter
2012-12-09 13:50   ` Hans Vlems
2012-12-09 15:11     ` Bill Findlay
2012-12-10 11:36       ` Hans Vlems

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox