--> Friday, January 30, 2004, 6:22:32 PM, [EMAIL PROTECTED] wrote:
> Isn't env just a way for you to call the "environmental" path or to
> specify changes in it? If python is not really specified in the
> enironment of the user then it would not be found.
From man env, which I read before my previous mail :
The env utility executes utility after modifying the environment as spec-
ified on the command line. The option name=value specifies an environ-
ment variable, name, with a value of value.
..and..
The env utility is sometimes useful with the ``#!'' construct (see
execve(2)). The only difference between ``#!/usr/local/bin/foo'' and
``#!/usr/bin/env /usr/local/bin/foo'' is that the latter works even if
/usr/local/bin/foo is itself interpreted. Using env this way also allows
one to reference foo without the path, as well as set up the environment
as desired.
That's why I wonder why /usr/bin/env is even needed/used.
My env doesn't seem to have anything requisitely useful in it.
> When you compile maybe you do it as root with a different shell than
> what is truly specified with your mail user.
I'm surprised compileall even exists actually, I figured python would
compile itself, but I don't know what going on, so I did it anyway.
> The env would mean different things to root and another user (like
> vpopmail) when searching for a specific path of something.
> I am not sure what user you are running mail as or what os but you could
> just su to the mail user and verify the env statement to see what path
> it comes up with for python and what version.
Yeah, I guess it is running as another user and that causes all these
problems. I'm just a regular user so I can't change that, but it works
fine without it, so I don't know why I need it... (/usr/bin/env)
Here's something important though...
What else might I have to modify in this way?
Anything tmda which is exec/system'ed from Python perhaps?
I'd imagine nothing is though. Can anyone tell me?
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users