From: John Smith <yoursurrogategod@gmail.com>
Subject: Trying to run ls, pwd, rm, etc. in linux without specifying the exact path
Date: Wed, 9 Mar 2016 09:05:11 -0800 (PST)
Date: 2016-03-09T09:05:11-08:00 [thread overview]
Message-ID: <d97b94b2-6a7e-4966-9563-daa20bd0173d@googlegroups.com> (raw)
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 exact path to it /bin/ls. How can I import the various Linux environment variables so tha I can just call 'ls' without specifying the direct path to the binary?
next reply other threads:[~2016-03-09 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 17:05 John Smith [this message]
2016-03-09 17:55 ` Trying to run ls, pwd, rm, etc. in linux without specifying the exact path Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox