On Mon, 19 Aug 2002, Bram Moolenaar wrote:
> Steven Knight wrote:
>
> > > The Python documenation says os.system() doesn't return an exit value at
> > > all for MS-Windows 9x. It looks like spawn*() doesn't do the needed
> > > things either. This probably means I need to add some C code to do it
> > > properly... That makes it a lot more difficult to install A-A-P, thus I
> > > certainly hope a Python-only solution can be found.
> >
> > os.spawn*() works fine so long as you pass os.P_WAIT as the first
> > argument, to wait for the exit status of the command.
>
> It looks like os.spawn*() only executes one command, not a shell command
> or pipeline like "cat file | sed expr > tt".
A shell command or pipeline is operating system specific also, if it can't
be done with Python alone, you always have multi platform support problems.
What are the OS-es that need to be supported?
Best regards,
Aschwin Marsman
--
aYniK Software Solutions all You need is Knowledge
Bedrijvenpark Twente 305 NL-7602 KL Almelo - the Netherlands
P.O. box 134 NL-7600 AC Almelo - the Netherlands
telephone: +31 (0)546-581400 fax: +31 (0)546-581401
a.marsman@... http://www.aYniK.com