I think I've found the problem.
Under windows, it is not advised to run win32 builds of unix programs with the default sucking shell %windir%\system32\cmd.exe
If you run this in cmd.exe:
gawk 'BEGIN{print NR}'
you will get the error message...
Concerning the first script : i am currently testing it under windows xp with gawk 3.1.3 build with MinGW, found here:
http://sourceforge.net/project/showfiles.php?group_id=9328
And even with this simple example:
-------------------------------
BEGIN {
system("gawk 'BEGIN{}'")
}...
Hi,
1) I would like to execute in gawk a shell command looking like this:
---------------------------------------------------------------
#!/bin/gawk -f
begin{
system("echo 'test' | gawk '{print $0}'")
}
---------------------------------------------------------------
but I get this error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.