How to know if a popen*() was successful?

Fernando Pérez fperez528 at yahoo.com
Tue May 21 15:42:27 EDT 2002


Donn Cave wrote:

> Quoth Fernando Prez <fperez528 at yahoo.com>:
> ...
> | Thanks for the suggestion, but as I said furhter (and you acknowledged), I
> | need this to work under windows, as much as I dislike that piece of trash.
> 
> Wonder if it would be better to attack the problem separately at a
> higher level, rather than trying to make these two platforms work
> the same at this level.  Especially if Windows support eventually
> means a Python pager substitute - surely there's a better way to
> bring that up than popen.

Very good point. I'll probably rewrite my page() routine to simply jump out 
straight to the dumb default under windows, and in Unix to do some 
platform-specific tests which may work better (like using which to find the 
person's pager).

Thanks!

f.



More information about the Python-list mailing list