StdOut on Windows

Mike Bonner bonnmike at gmail.com
Sun Jan 22 16:04:54 EST 2012


Someone who can write in C could probably just whip up a teeny app in c
that takes stdin and immedietly sends it to stdout (like more, but without
the paging features) that could be incorporated with your apps.  Its still
an ugly workaround though.

Have a batch file for execution that handles the piping and takes params
(also would have to be included with your app.)



## batch file
yourstackfile -ui %1 %2 %3 | yourlittlecprog

Of course all this is much uglier than oh say.. having a stdout that works.
  Probably still too convoluted for a production answer.
On Sun, Jan 22, 2012 at 1:43 PM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Hi Mike,
>
> This might be interesting for in-house solutions, but not for people who
> need to be able to use my software "out of the box". I'll keep this in mind
> though.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Download the Installer Maker Plugin 1.7 for LiveCode here
> http://qery.us/za
>
> On 22 jan 2012, at 19:28, Mike Bonner wrote:
>
> > Hey, not sure this is an acceptable method but.. If you have control of
> the
> > target system and can install unxutils, then you can build a standalone
> > that does a "write whatever to stdout"
> >
> > If you run it with the -ui parameters, as you've seen nothing appears on
> > screen. But if you pipe to cat, viola' It works.
> >
> > timeout -ui |cat
> >
> > I had noticed in the console logs that SOMETHING was occuring (an error
> > crops up when a livecode app that does stdout is run) and on a whim did a
> > redirect to a file and the file actually did end up with the stuff from
> > stdout.
> > (timeout > tempfile) so figured being able to pipe it to a well mannered
> > utility like cat might work.
> >
> > The cool thing is that once unxutils are installed you then have access
> to
> > grep, agrep and lots of other nifty things.
> > If you want to check out these utils they can be found at *
> > http://unxutils.sourceforge.net/*
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list