Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows 7 64-Bit Awk?

7,245 views
Skip to first unread message

Zamdrist

unread,
Jun 7, 2010, 12:49:39 PM6/7/10
to
Is there a version out there somewhere that is 64-Bit and runs under
Windows 7 as 64-Bit?

I've done some Googling but without much luck. Is the only option
either MKS toolkit or Cygwin 64-Bit?

Ted Davis

unread,
Jun 8, 2010, 9:56:52 AM6/8/10
to

Why do you need a 64 bit version?

I'm currently finishing up a rather large project that involves a number
of CGI scripts for the main system and several larger scripts that build
images and HTML files, all in 32 bit gawk under Windows 7.

The largest CGI script is used with a HTML page to gather mouse
coordinates of the nodes in the path from the 'Your are here' point to
each of 194 rooms and then create SVG images for the animated path
overlays to show how to get to the rooms (it's a touch screen building
directory built with gawk, HTML, CSS, and JavaScript). A batch file
invokes another gawk script to create the HTML files for each room and to
build the transient batch file to convert the SVG files to PNG and
composite them with the base floor plan images to generate the final
pages and images for each room.

Everything is 32 bit and works almost perfectly (a couple of images with
file names like 2MT2 and 3WT1 cause CMD to throw obscure errors, but I
was able to build those at home with slightly modified scripts under 64
bit Fedora 12). I wish they had allowed me to use Linux for the whole
project, but that is against policy.

--
Ted Davis (tda...@mst.edu)

peterhansen

unread,
Jul 3, 2010, 5:02:05 AM7/3/10
to
Ted,
I am a long time user of awk/gawk last few years under win XP and am now faced with the problem of loading it under Windows 7, don't seem to get much luck in searching for any help on the subject. Any pointer would be appriciated.

Peter Hansen
Ocean Shores NSW Australia

Ted Davis wrote:

Why do you need a 64 bit version?

08-Jun-10

Why do you need a 64 bit version?

I am currently finishing up a rather large project that involves a number


of CGI scripts for the main system and several larger scripts that build
images and HTML files, all in 32 bit gawk under Windows 7.

The largest CGI script is used with a HTML page to gather mouse
coordinates of the nodes in the path from the 'Your are here' point to
each of 194 rooms and then create SVG images for the animated path

overlays to show how to get to the rooms (it is a touch screen building


directory built with gawk, HTML, CSS, and JavaScript). A batch file
invokes another gawk script to create the HTML files for each room and to
build the transient batch file to convert the SVG files to PNG and
composite them with the base floor plan images to generate the final
pages and images for each room.

Everything is 32 bit and works almost perfectly (a couple of images with
file names like 2MT2 and 3WT1 cause CMD to throw obscure errors, but I
was able to build those at home with slightly modified scripts under 64
bit Fedora 12). I wish they had allowed me to use Linux for the whole
project, but that is against policy.

--
Ted Davis (tda...@mst.edu)

Previous Posts In This Thread:

On Monday, June 07, 2010 12:49 PM
Zamdrist wrote:

Windows 7 64-Bit Awk?
Is there a version out there isomewhere that is 64-Bit and runs under
Windows 7 as 64-Bit?

I have done some Googling but without much luck. Is the only option


either MKS toolkit or Cygwin 64-Bit?

On Tuesday, June 08, 2010 1:56 PM
Ted Davis wrote:

Why do you need a 64 bit version?
Why do you need a 64 bit version?

I am currently finishing up a rather large project that involves a number


of CGI scripts for the main system and several larger scripts that build
images and HTML files, all in 32 bit gawk under Windows 7.

The largest CGI script is used with a HTML page to gather mouse
coordinates of the nodes in the path from the 'Your are here' point to
each of 194 rooms and then create SVG images for the animated path

overlays to show how to get to the rooms (it is a touch screen building


directory built with gawk, HTML, CSS, and JavaScript). A batch file
invokes another gawk script to create the HTML files for each room and to
build the transient batch file to convert the SVG files to PNG and
composite them with the base floor plan images to generate the final
pages and images for each room.

Everything is 32 bit and works almost perfectly (a couple of images with
file names like 2MT2 and 3WT1 cause CMD to throw obscure errors, but I
was able to build those at home with slightly modified scripts under 64
bit Fedora 12). I wish they had allowed me to use Linux for the whole
project, but that is against policy.

--
Ted Davis (tda...@mst.edu)


Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET GridView: Select Row and Display Item Detail
http://www.eggheadcafe.com/tutorials/aspnet/ff14a008-2af9-4f9d-a09d-1af670466a80/aspnet-gridview-select-row-and-display-item-detail.aspx

Ted Davis

unread,
Jul 3, 2010, 9:44:33 AM7/3/10
to
On Sat, 03 Jul 2010 04:02:05 -0500, Peter Hansen wrote:

> I am a long time user of awk/gawk last few years under win XP and am now
> faced with the problem of loading it under Windows 7, don't seem to get
> much luck in searching for any help on the subject. Any pointer would be
> appriciated.

The 32 bit version from http://gnuwin32.sourceforge.net/packages/gawk.htm
works fine under Windows 7. Except for the Internet functions and pipes
to commands (|& syntax). I've never had any trouble finding ways around
those issues when I needed the functionality. The former is more
important to me, and simply shelling wget provides the functionality I
need. This example is a real CGI script that retrieves weather for our
area from Yahoo and reformats it for use as a server side include in the
body of an HTML frame on the home page of the new touchscreen building
directory I just finished a couple of weeks ago - it runs under Apache on
Windows 7 (it also runs without modification on XP):

#!c:/bin/awk.exe -f
BEGIN{
Conditions = ""
Forecast = ""
Flag = 0
URL = "http://weather.yahooapis.com/forecastrss?p=65409"
Command = "c:\\bin\\wget -q -O- " URL
while( ( Command | getline ) > 0 ) {
if( match( $0, /<pubDate>([^<]+)<\/pubDate>/, A ) ){
pubDate = A[ 1 ]
}
if( $0 ~ /Current Conditions:/ ) Flag = 1
if( $0 ~ /href=/ ) Flag = 0
if( Flag ) Conditions = Conditions $0
}
sub( /\n+$/, "", Conditions )
print "Content-type: text/html\n"
print "<div id=Weather>"
print pubDate "<BR>"
print Conditions
print "</div>"
}

I reused several other scripts from the XP version under Windows 7 for
the new one (some CGI, some command line). I neither expected nor
encountered any problems with gawk. That's not to say I didn't have
problems porting the project, but most of them were due either to Windows
7 or to the IT policies that lock it down a little too much for the task
at hand.

--
Ted Davis (tda...@mst.edu)

Kenny McCormack

unread,
Jul 3, 2010, 11:00:05 AM7/3/10
to
In article <898t60...@mid.individual.net>,

Ted Davis <tda...@mst.edu> wrote:
>On Sat, 03 Jul 2010 04:02:05 -0500, Peter Hansen wrote:
>
>> I am a long time user of awk/gawk last few years under win XP and am now
>> faced with the problem of loading it under Windows 7, don't seem to get
>> much luck in searching for any help on the subject. Any pointer would be
>> appriciated.
>
>The 32 bit version from http://gnuwin32.sourceforge.net/packages/gawk.htm
>works fine under Windows 7. Except for the Internet functions and pipes
>to commands (|& syntax). I've never had any trouble finding ways around

The Cygwin version (*) supports all the regular Unix stuff. But ISTR
that they had actually gotten the Internet stuff working in "native"
DOS/Windows-land (i.e., using a WinSock backend in place of the usual
Unixy backend). (To be clear) This didn't happen until a few
versions/releases after the initial release of the Internet stuff; that
is, in the beginning, the only option for Windows was Cygwin.

(*) I don't have a URL handy for a quick download, but the easiest way
to get the Cygwin version is to compile it yourself.

--
(This discussion group is about C, ...)

Wrong. It is only OCCASIONALLY a discussion group
about C; mostly, like most "discussion" groups, it is
off-topic Rorsharch [sic] revelations of the childhood
traumas of the participants...

0 new messages