bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"|&" co-process operator fails(WinNT4.0)


From: Paranji, Sanjay
Subject: "|&" co-process operator fails(WinNT4.0)
Date: Mon, 31 Dec 2001 23:19:14 -0600

Hi 

I am attempting to use "gawk" to communicate between a PC and a Unix host.
As a test I wrote the following prog which starts a service to listen for a
{filename} argument. While I could launch the service on a UNIX box with
gawk 3.1, I could NOT launch this on the PC with gawk 3.1. I installed gawk
on the PC myself by getting "djgpp" binaries, the PC is loaded with WinNT
4.0 OS. The prog fails with the msg

fatal: '|&' not supported

All the docs seem to suggest that co-process operator works under the
Microsoft Win environment. Am I missing something?. Thanks and Rgds, Sanjay

# ----------------------------------------------------test
program---------------------------------------
BEGIN{ 
  srv = "/inet/tcp/8888/0/0"

  while (dummy==0)
  {  srv |& getline
     fil = $1; cmd = "cat " fil 
     while (cmd|getline) { print $0 |& srv }
     close(cmd); close(srv)
  }
} 

=====================================
Sanjay Paranji, Division Reservoir Engr
Kerr McGee Oil and Gas
Office: 1-281-618-6752, Mobile: 1-713-594-1210
Pager: 1-281-737-6752, Fax: 1-281-618-6682
=====================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]