Re: funneling a file to stdin from the command line




"Richard Heathfield" <rjh@xxxxxxxxxxxxxxx> wrote in message
news:dcSdnTkR6bqr5XjanZ2dnUVZ8sLinZ2d@xxxxxxxxx
c gordon liddy said:

<snip>

With stdout, I'll redirect so:
text4.txt 2>text5.txt
, once I want the output to have a more permanent existence than in a dos
window.

How do I funnel a file to stdin from the command line?

In a vanilla Win32 console, it's:

yourprogram < yourdatafile.txt
Thanks, Richard and Walter. That had to be some kind of record for quick
and effective responses.

I can't believe I didn't think to turn the arrows around. It is a
shell-specific thing, but I'd bet it works on a lot of systems.

Happy Easter. I think in the U.K, you're already there. My dad would hide
everybody else's baskets in the living room, dining, study. He'd hide mine
in the crawlspace of the garage. I found it every year, though.
--
C. Gordon Liddy

"Virile, vigorous, potent."


.



Relevant Pages

  • Re: funneling a file to stdin from the command line
    ... once I want the output to have a more permanent existence than in a dos ... window. ... How do I funnel a file to stdin from the command line? ...
    (comp.lang.c)
  • Re: writing to pipe [OT]
    ... Of course, I haven't done the cat exercise, at least not since George ... I'd been asking how do funnel a file to stdin. ... Dos has no idea what he's talking about. ...
    (comp.lang.c)
  • Re: Unable to delete
    ... any files that may be in the folders. ... If there are any files, use the Attrib command to remove any Hidden, System or Read-only attributes that may have been set for them. ... Maybe it's Windows Explorer itself that is blocking the deletion; be sure it is focused on some other folder before you open the "DOS" window. ...
    (microsoft.public.windows.file_system)
  • Re: setmode
    ... includes opening the redirected-to-file as binary. ... Which worked for you as well, except CON is not an alias for standard ... if I reopen stdin as binary ... closed by DOS, then I'd expect a mode change. ...
    (comp.os.msdos.djgpp)
  • Re: SNAP and 1920x1200 resolution...
    ... these maneuvers shows that there is nothing fundamentally wrong with the video device or its drivers; rather there must be some sort of configuration problem in the windowed DOS object or a bug in the code that launches windowed DOS and WINOS2 sessions. ... Once the windowed session is working, the DOS settings that can be examined and changed dynamically are still the same as those of the DOS window object. ... My guess would be that the video BIOS starts up the video hardware in a really weird mode. ... It is reenterable allowing several DOS sessions to run simultaneously. ...
    (comp.os.os2.misc)