Hi Mariano, actually the $PATH is correctly taken from my system settings, it's broken in the system settings. The idea from Camillo works, as well as changing the $PATH on the system. The remaining question is: should this be reported as a bug? (I tend to yes) Thank you, Ingo On 04/26/2013 02:44 PM, Mariano Martinez Peck wrote:
Hi. When I worked a bit with OSProcess I remember I had to set $PATH, but this was on OSX:
"Setup OS Process" env := OSProcess thisOSProcess environment copy. path := (env at: #PATH), ':/usr/local/bin/:/usr/bin/'. env at: #PATH put: path.
Maybe you can try it...
Best,
On Fri, Apr 26, 2013 at 6:30 AM, Camillo Bruni <camillobruni@gmail.com <mailto:camillobruni@gmail.com>> wrote:
I can't properly answer your question, and in typical forum behavior I suggest using a different approach :)
(PipeableOSProcess command: 'ls -l') output
On 2013-04-26, at 10:12, Ingo Hohmann <pharo@ingohohmann.de <mailto:pharo@ingohohmann.de>> wrote: > Hi all, > > as far as I know, NativeBoost does not yet allow starting external > programs on linux, so I'm trying to use CommandShell. > > CommandShell new open; command: 'ls -l' . > > And I get an error: > > DirectoryDoesNotExist: Path / 'usr' / 'local' / 'sbin' > > > I must admit, that this directory is in $PATH, but is not available on > disk. > > Is there a deeper reason to signal an error in this case, or should this > be treated as a bug? > > (Pharo 2.0) > > Kind regards, > > Ingo >
-- Mariano http://marianopeck.wordpress.com