Lisp HUG Maillist Archive

call-system-showing-output

% /sw/bin/docbook2html --version
DocBook-utils version 0.6.14 (jw version 1.1)


 > (system:call-system-showing-output "/sw/bin/docbook2html --version")
; /sw/bin/docbook2html --version
; /sw/bin/docbook2html: line 2: jw: command not found
127

What am I doing wrong? LWM 4.3.6.

Thanks,

John DeSoi, Ph.D.


Re: call-system-showing-output

My guess is that the value of PATH environment variable is not identical 
in your interactive shell and the shell employed by Lispworks.  To find 
out, try 'echo $PATH' in both contexts.  Processes normally inherit 
their environment variables from the parent process, at process creation 
time.  Note: I do not use Macs/OS X, but I'm guessing that OS X behave 
similarly to other Unix-like OSs in this respect.

best,

Klaus.

John DeSoi wrote:

> % /sw/bin/docbook2html --version
> DocBook-utils version 0.6.14 (jw version 1.1)
>
>
> > (system:call-system-showing-output "/sw/bin/docbook2html --version")
> ; /sw/bin/docbook2html --version
> ; /sw/bin/docbook2html: line 2: jw: command not found
> 127
>
> What am I doing wrong? LWM 4.3.6.
>
> Thanks,
>
> John DeSoi, Ph.D.
>
>


Re: call-system-showing-output

Re: call-system-showing-output
At 7:44 AM -0400 5/14/04, John DeSoi wrote:
Klaus,

On May 11, 2004, at 2:49 AM, Klaus Harbo wrote:
My guess is that the value of PATH environment variable is not identical in your interactive shell and the shell employed by Lispworks.  To find out, try 'echo $PATH' in both contexts.  Processes normally inherit their environment variables from the parent process, at process creation time.  Note: I do not use Macs/OS X, but I'm guessing that OS X behave similarly to other Unix-like OSs in this respect.


Yes, I'm convinced this is the problem, but I'm still not sure how to solve it.
Anyone know how to setup environment variables for programs launched from the Finder/Dock on OS X? Or customized the shell context used by call-system-showing-output?

To setup environment variables that are in effect globally, you put them in the file ~/.MacOSX/environment.plist.  Here's an example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>CVS_RSH</key>
        <string>ssh</string>
</dict>
</plist>

I hope this helps.
 
  - Gary
Updated at: 2020-12-10 08:56 UTC