execvp() on Solaris

mikeSpindler mike at spindler.us
Tue Oct 19 12:30:07 CEST 2004

You might not be aware - os.system calls execvp.  Thus, when I call
os.system I'm getting execvp errors when I run on Solaris.  Thank you
for the responses so far.  I'd love to hear how to resolve the known
issue of Python not using the system's execvp.  THANK YOU!

Andrew MacIntyre <andymac at bullseye.apana.org.au> wrote in message news:<mailman.5151.1098148373.5135.python-list at python.org>...
> On Mon, 18 Oct 2004, mikeSpindler wrote:
> > resolve the errors wrt execvp().  It's apparently not syntax, but I
> > could be wrong.  Any other thoughts on how to get execvp() working
> > and/or how to cat a file in a new window without bringing tkinter into
> > the discussion?
> >
> > My example:
> >   os.system("xterm -geometry 120x20 -e \"tail -f ./logs/DATAFILE\"&")
> AFAICS, this should be
>     os.system('xterm -geometry 120x20 -e \"tail -f ./logs/DATAFILE\"&')
> But os.system() is not os.execvp()...
> You don't elucidate what your problems with execvp() are..., but if what
> you have works on Linux but not Solaris I'd have to wonder about the
> environment setup for the account:-
>  - path?
>  - library path (for X11 libs)?
>  - different shell?
> With execvp(), the shell shouldn't be involved unless you explicitly
> execute it so you won't get shell variable expansion or asynchronous
> execution (the '&' above).
> -------------------------------------------------------------------------
> Andrew I MacIntyre                     "These thoughts are mine alone..."
> E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
>         andymac at pcug.org.au             (alt) |        Belconnen ACT 2616
> Web:    http://www.andymac.org/               |        Australia

More information about the Python-list mailing list