execvp() on Solaris
Andrew MacIntyre
andymac at bullseye.apana.org.au
Mon Oct 18 18:10:18 EDT 2004
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