From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.159.82 with SMTP id i79mr110022ioe.32.1457543111600; Wed, 09 Mar 2016 09:05:11 -0800 (PST) X-Received: by 10.182.214.98 with SMTP id nz2mr6109obc.4.1457543111536; Wed, 09 Mar 2016 09:05:11 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!sv18no6779igc.0!news-out.google.com!k1ni13607igd.0!nntp.google.com!nt3no191350igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 9 Mar 2016 09:05:11 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=172.56.34.71; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 172.56.34.71 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Trying to run ls, pwd, rm, etc. in linux without specifying the exact path From: John Smith Injection-Date: Wed, 09 Mar 2016 17:05:11 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29709 Date: 2016-03-09T09:05:11-08:00 List-Id: Hello, I found this little example and expanded on it: http://rosettacode.org/wiki/Execute_a_system_command#Ada I used the example where GNAT.OS_Lib is used. Everything works like I want= it to, almost. If I want to call a Linux command, I have to specify the e= xact path to it /bin/ls. How can I import the various Linux environment va= riables so tha I can just call 'ls' without specifying the direct path to t= he binary?