* ada making linux script calls
@ 2002-02-21 15:11 tony gair
2002-02-21 16:01 ` sk
0 siblings, 1 reply; 4+ messages in thread
From: tony gair @ 2002-02-21 15:11 UTC (permalink / raw)
Hi Gang,
(ada purists close your eyes now...you will not like this question and
I'm forgotten to wear my asbestos underpants....)
has anyone managed to successfully call a shell script in linux from within
an Ada Program or task,
( or does anyone know how?)
is there a package or library for this ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ada making linux script calls
2002-02-21 15:11 ada making linux script calls tony gair
@ 2002-02-21 16:01 ` sk
2002-02-21 16:34 ` tony gair
0 siblings, 1 reply; 4+ messages in thread
From: sk @ 2002-02-21 16:01 UTC (permalink / raw)
Hi,
with Gnat.Os_Lib;
...
Success : Boolean;
....
OS_Lib.Spawn (
Program_Name => "/bin/bash", -- On a DOS try "c:\command"
Argument_List => new Gnat.Os_Lib.Argument_List'(
1=> "myscript.sh"
),
Success => Success
);
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
k i e k c c m
-------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ada making linux script calls
2002-02-21 16:01 ` sk
@ 2002-02-21 16:34 ` tony gair
2002-02-22 17:31 ` file13
0 siblings, 1 reply; 4+ messages in thread
From: tony gair @ 2002-02-21 16:34 UTC (permalink / raw)
thanks sk
you're a star
"sk" <noname@myob.com> wrote in message
news:mailman.1014307322.31145.comp.lang.ada@ada.eu.org...
> Hi,
>
> with Gnat.Os_Lib;
>
> ...
>
> Success : Boolean;
>
> ....
>
> OS_Lib.Spawn (
> Program_Name => "/bin/bash", -- On a DOS try "c:\command"
> Argument_List => new Gnat.Os_Lib.Argument_List'(
> 1=> "myscript.sh"
> ),
> Success => Success
> );
>
>
> -------------------------------------
> -- Merge vertically for real address
> -------------------------------------
> s n p @ t . o
> k i e k c c m
> -------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ada making linux script calls
2002-02-21 16:34 ` tony gair
@ 2002-02-22 17:31 ` file13
0 siblings, 0 replies; 4+ messages in thread
From: file13 @ 2002-02-22 17:31 UTC (permalink / raw)
tony gair wrote:
> thanks sk
> you're a star
>
>
> "sk" <noname@myob.com> wrote in message
> news:mailman.1014307322.31145.comp.lang.ada@ada.eu.org...
>
>>Hi,
>>
>>with Gnat.Os_Lib;
>>
>>...
>>
>>Success : Boolean;
>>
>>....
>>
>>OS_Lib.Spawn (
>> Program_Name => "/bin/bash", -- On a DOS try "c:\command"
>> Argument_List => new Gnat.Os_Lib.Argument_List'(
>> 1=> "myscript.sh"
>> ),
>> Success => Success
>>);
>>
>>
>>-------------------------------------
>>-- Merge vertically for real address
>>-------------------------------------
>>s n p @ t . o
>> k i e k c c m
>>-------------------------------------
>>
>
>
he he, yup, fu
http://sourceforge.net/projects/fu-scan/
makes extensive use of system calls. i wrote a small thin POSIX binding
for it--which is in the source--because florist was so clunky and didn't
compile on Slackware 8--the 3.14 versions does though.....
http://www.qlippoth.com/ada.html
http://www.qlippoth.com/os.tar.gz
of course check out
http://www.vaxxine.com/pegasoft/homes/book.html
good luck!
file13
http://www.qlippoth.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-02-22 17:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-21 15:11 ada making linux script calls tony gair
2002-02-21 16:01 ` sk
2002-02-21 16:34 ` tony gair
2002-02-22 17:31 ` file13
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox