Re: popen




"Evenbit" <nbaker2328@xxxxxxxxxxx> wrote in message
news:3d517bc1-0295-4223-a60a-6553a0975632@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 10, 6:21 am, "Rod Pemberton" <do_not_h...@xxxxxxxxxxxxx> wrote:

Good point. I thought 'less' killed 'more' on *nix...

Like so many other things, it still needs to be there for "backwards
compatibility" reasons. Linux is in the same boat as Windows...

Does your Cygwin have 'more'?


My DOS has 'more'. But, it's not *nix. My DJGPP has 'less'.

Did you try compiling/running my Nasm code under Cygwin?

No. Sorry, I don't currently have Cygwin, MinGW, Pelles C, or LCC-Win32
installed. I wasn't using them enough. And, I left Cygwin installed for a
few extra years since it's installation/package manager was _so_ messed
up...

Did the
piping part work?

popen etc. is emulated via files for DOS with DJGPP, but the asm isn't
likely to work for DOS, etc., due to incompatible interrupt calls.

Yes, the pipe is the key feature. The command line *nix pipe '|'
implementation is well used... and understood. But, p* function use,
AFAICT, seems uncommon both on *nix and elsewhere.

I would certainly have to disagree.

With? There's like five to seven things you could disagree with...

Piping to/from a spawned process
is a common question in forums.

Which would indicate it's not well understood or commonly used...
(But, don't take my word for it. Search for code with popen()...)

One doesn't always have the source
code for the process you want to use -- therefore, you can't use other
forms of interprocess communication.

ANSI freopen() and system(), anyone?


RP

.



Relevant Pages

  • RE: Redirect perldoc to usb printer
    ... With my cygwin setup ... Works but a DOS window flashes for a split second before printing. ... Subject: OT: Redirect perldoc to usb printer ... How can you redirect to a usb printer from the shell in windows xp? ...
    (perl.beginners)
  • Re: get tclapp-wrapped app to display output in DOS console?
    ... If I run this program from a cygwin bash shell, the output appears as expected and all is well. ... I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. ... The program appears to run in the background and I have no idea where stdout is going. ...
    (comp.lang.tcl)
  • Re: get tclapp-wrapped app to display output in DOS console?
    ... If I run this program from a cygwin bash shell, the output appears as expected and all is well. ... I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. ... The program appears to run in the background and I have no idea where stdout is going. ...
    (comp.lang.tcl)
  • Re: get tclapp-wrapped app to display output in DOS console?
    ... If I run this program from a cygwin bash shell, the output appears as expected and all is well. ... I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. ... The program appears to run in the background and I have no idea where stdout is going. ...
    (comp.lang.tcl)