Re: Using command line and stdin/stdout with 2.5.1

From: Dominic Lachowicz <domlachowicz_at_gmail.com>
Date: Fri Jun 01 2007 - 04:55:00 CEST

He's actually already filed a bug
(http://bugzilla.abisource.com/show_bug.cgi?id=11000). And I was the
one that suggested that Windows releases the console after the program
started :) IIRC, it does this if your application's entry point is
WinMain() instead of main().

Dom

On 5/31/07, Ryan Pavlik <abiryan@ryand.net> wrote:
>
> I presume (actually, someone suggested it to me, apologies because I
> don't remember who) that the reason stdin/stdout doesn't work on Windows
> is because Windows releases the console after the program is started,
> since we are a full GUI app, and so we don't actually own a stdin or
> stdout. If this is a big deal for you, please file a bug
> http://bugzilla.abisource.com - I'm not sure there's anything we can do
> about it, but may as well record it for the future.
>
> Ryan
>
> Dominic Lachowicz wrote:
> >
> > Hi,
> >
> > I just tried the following on Ubuntu Linux, and it worked.
> >
> > abiword --to=html --to-name=fd://1 fd://0 < resume.txt | less
> > cat resume.txt | abiword --to=html --to-name=fd://1 fd://0 | less
> >
> > I'm the author of this feature, but I'm not sure that anyone ever
> > tested it on Windows.
> >
> > Dom
> >
> > On 5/18/07, Antony Bowesman <adb@teamware.com> wrote:
> >>
> >> I read that 2.5 supports stdin/stdout (from http://uwog.net/news/?p=62)
> >>
> >> I just downloaded and installed the Windows 2.5.1 version
> >>
> >> I've confirmed that the standard
> >>
> >> AbiWord --to=txt FastSavedDoc.doc
> >>
> >> works, which creates FastSavedDoc.txt
> >>
> >> However, when I try to use the stdin/out mechanism according to the
> >> examples in
> >> the above web page I get no joy, e.g.
> >>
> >> AbiWord --to=txt --to-name=fd://1 fd://0 <FastSavedDoc.doc
> >> AbiWord --to=txt --to-name=x.txt fd://0 <FastSavedDoc.doc
> >> cat FastSavedDoc.doc | AbiWord --to=txt --to-name=fd://1 fd://0
> >>
> >> I have Cygwin installed for the last version. Nothing happens and
> >> there's no
> >> output. No files are written to the directory.
> >>
> >> What am I doing wrong?
> >>
> >> Thanks
> >> Antony
> >>
> >
> >
>
>
> --
> Ryan Pavlik
> AbiWord Win32 Platform Maintainer, Art Lead: www.abisource.com
> AbiWord Community Outreach Project: www.cleardefinition.com/oss/abi/blog/
>
> "Optimism is the father that leads to achievement."
> -- Helen Keller
>
> "The folder structure in a modern Linux distribution such as Ubuntu
> was largely inspired by the original UNIX foundations that were
> created by men with large beards and sensible jumpers."
> -- Jono Bacon, The Ubuntu Guide
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abiword-user-request@abisource.com with the word
> unsubscribe in the message body.
>

-- 
Counting bodies like sheep to the rhythm of the war drums.
-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
Received on Fri Jun 1 04:54:29 2007

This archive was generated by hypermail 2.1.8 : Fri Jun 01 2007 - 04:54:29 CEST