On Jun 6, 2006, at 11:45 AM, [EMAIL PROTECTED] wrote:
On Jun 06, 2006, at 16:23 UTC, Norman Palardy wrote:
The shell is not started with the exact same environment as the
terminal instance is
if you try "which spamassassin" in terminal and shell you probably
get a "not found" error in the shell
Right, Norman's hit the nail on the head. Terminal doesn't just
open up a raw process; it executes an actual shell program, which
does a lot of stuff before turning control over to you (the user).
Depending on the shell, it may source .profile, .tcshrc, global
initialization files, etc. REALbasic's Shell doesn't do all that;
it inherits the environment that its host process (the RB app
itself) has, and executes whatever command you give it (which in
this case, for example, is not actually a shell). The search
So, if you want your Shell to act exactly like Terminal, you'd need
to execute the same shell (probably bash or tcsh) that Terminal's
doing, and then subsequently .Write your commands to it. But
that's a sledgehammer solution where a flyswatter may do. Try just
giving the full path to spamassassin instead, or using
System.EnvironmentVariable to make sure the PATH variable includes
the directory you need.
HTH,
- Joe
What I am confused about is why one machine (my desktop) cannot find
SpamAssassin in the shell, but my laptop (running a nearly identical
configuration) apparently CAN find SpamAssassin in the shell. I
worked around the problem for now by having my application check the
usual places that SpamAssassin gets installed.
--
Chris Jett
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>