From: gisle@apal.ii.uib.no (Gisle S�lensminde)
Subject: Re: How to execure Unix scripts
Date: 2000/07/20
Date: 2000-07-20T00:00:00+00:00 [thread overview]
Message-ID: <slrn8ndvb8.16h.gisle@apal.ii.uib.no> (raw)
In-Reply-To: 8l6mnl$2eh$1@news.uit.no
In article <8l6mnl$2eh$1@news.uit.no>, Reinert Korsnes wrote:
>Hi,
>
>I did not find answer on this in my Ada95 literature:
>
>How do I execute a Unix script in Ada95 ?
>
>I am looking for something like the function "system" under Fortran.
>I also would like to run/start gnuplot under Ada and start and use
>results from octave/mathlab etc...
The 'system' function call is not a part of Fortran, but some
fortran compilers links with the C library, where 'system' is found.
The 'system' call is neither a part of Ada, and you must either
import the 'sysyem' call, and link with the C library, or use
a (vendor-supplied) library. In gnat the package 'gnat.os_lib'
have a function spawn doing this, and that is easier to use than
an imported C function.
Starting gnuplot can be done this way, but limits comunication
between the the Ada and gnuplot process to the command line of
gnuplot. If the problem require more comunication, a different
approch must be used.
--
Gisle S�lensminde ( gisle@ii.uib.no )
ln -s /dev/null ~/.netscape/cookies
next prev parent reply other threads:[~2000-07-20 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-20 0:00 How to execure Unix scripts Reinert Korsnes
2000-07-20 0:00 ` Gisle S�lensminde [this message]
2000-07-21 0:00 ` James S. Rogers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox