Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Win32 gawk vs. Unix awk

by gibsonca (Beadle)
on Nov 30, 2009 at 14:48 UTC ( #810191=note: print w/replies, xml ) Need Help??

in reply to Re: Win32 gawk vs. Unix awk
in thread Win32 gawk vs. Unix awk

On the DOS side, things are still not working like UNIX. gawk (GNU Awk 3.1.6) is calling the scan_tdf.awk file, but none of the values like corrtype are being passed over. The files are the same between UNIX and DOS.

$cmd = "gawk -f D:\\tools\\scan_tdf.awk 'corrtype=ada', 'FileSuffix=_p +kg', 'TDFname=sys_mma_pfd_gmeter.tdf', 'PrefixFile=d:\\tools\\PrefixF +ile', 'BusNamesFile=d:\\data\\ssi_BusNames', 'VAXPATH=NONE', 'DIRPATH +=NONE'"; print "cmd1 is $cmd \n\n"; $sts = system($cmd); print "sts1 from gawk is $sts \n"; exit(0);

Still looking for help!

I have tried modifying the calling parameters in many ways...

Replies are listed 'Best First'.
Re^3: Win32 gawk vs. Unix awk
by gibsonca (Beadle) on Nov 30, 2009 at 15:28 UTC

    So I solved this little DOS GNU gawk problem by using the "-v" argument. Everything now works like UNIX. Back to converting this to perl. ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://810191]
[ww]: ++ambrus "their browser died just when...."
[ambrus]: ww: or they accidentally closed the window, or something. the exact excuse doesn't matter.
[ambrus]: you hear that on web forums frequently.
LanX Fermat 's famous browser
[ww]: ambrus agree; got the t-shirt, et al

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2017-03-23 18:18 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (292 votes). Check out past polls.