Is there a gawk version 3.0.2 problem?

Is there a gawk version 3.0.2 problem?

Post by John Forko » Wed, 23 Apr 1997 04:00:00



After installing teTeX from the t series of Slackware 3.1
(jan 20 was the last ChangeLog.txt entry), I tried running
xdvi, which invoked maketexpk, which invoked gawk, which
got stuck in a loop.  Ditto for texhash.  I finally got
an older version of gawk, 2.15pl6, and that worked okay.
Is there some problem with the most recent version (3.0.2)
of gawk distributed with Slackware?

 
 
 

1. rsh [server] gawk "gawk-program" fails

Hi there,

I'm trying to invoke a gawk command on host B from host A using rsh, like
this:
/usr/bin/rsh server2 /usr/bin/gawk "'{ MY_DATE = strftime(\"%d/%m/%Y\",\$1)
MY_INDEX = index(\$4, \"/\")  TCP_CODE = substr(\$4, 1, (MY_INDEX-1))  if
(!(TCP_CODE==\"NONE\" || TCP_CODE==\"TCP_DENIED\"))  print MY_DATE,
TCP_CODE, \$5, \$7, \$8  }' /var/logs/cache/access.log.0 >
/var/logs/cache/access.log.0.tmp"

When I run this command, here's what happens:
gawk: cmd. line:1: { MY_DATE = strftime("%d/%m/%Y",$1) MY_INDEX = index($4,
"/") TCP_CODE = substr($4, 1, (MY_INDEX-1)) if (!(TCP_CODE=="NONE"
|| TCP_CODE=="TCP_DENIED")) print MY_DATE, TCP_CODE, $5, $7, $8  }
gawk: cmd. line:1:                                              ^ parse
error
gawk: cmd. line:1: { MY_DATE = strftime("%d/%m/%Y",$1) MY_INDEX = index($4,
"/") TCP_CODE = substr($4, 1, (MY_INDEX-1)) if (!(TCP_CODE=="NONE"
|| TCP_CODE=="TCP_DENIED")) print MY_DATE, TCP_CODE, $5, $7, $8  }
gawk: cmd. line:1:
^ parse error
gawk: cmd. line:1: { MY_DATE = strftime("%d/%m/%Y",$1) MY_INDEX = index($4,
"/") TCP_CODE = substr($4, 1, (MY_INDEX-1)) if (!(TCP_CODE=="NONE"
|| TCP_CODE=="TCP_DENIED")) print MY_DATE, TCP_CODE, $5, $7, $8  }
gawk: cmd. line:1:
^ parse error

The first two parse errors seem to be referring to the equals signs between
MY_INDEX and index(), and between TCP_CODE and substr(). The third parse
error doesn't seem to refer to anything in the code, but always appears a
certain amount of characters after the beginning of the command.

The gawk program works when run from a shell script on server2.

I've looked in a few shell books and done a bit of searching, but I'm still
stuck... any pearls of wisdom, anyone?

Thanks in advance,
Guy.

2. Sendmail loopback problems

3. what version of X am I running?

4. Can I boot of 2nd drive with lilo?

5. what version of dga am I running?

6. Going mad with gv / fonts!!

7. Samba : Which version am I using???

8. Funky log - though I'd have thought this couldn't happen?

9. (Q) How do I find what version of KDE I am running?

10. What version of Perl am I running?

11. Help: What Version am I Using?

12. how do I check the version I am runnning on?

13. what version of openwin am i using