running a program via exec*

Steve Holden sholden at holdenweb.com
Fri Feb 22 07:55:32 EST 2002


"Rajarshi Guha" <rxg218 at psu.edu> wrote in message
news:a54294$l0e at r02n01.cac.psu.edu...
> Hi,
>   this is somewaht related to my earlier post. When I use execl(progname)
> it seems to work. However it always looks for the progrma in the current
> directory. Is there any way to specify the path from the environment
> without having to type out the path to the program itself?
>
You forgot about execlp() ... the exec*p() variants search the usual
suspects for the executable.

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py







More information about the Python-list mailing list