bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] External shell command REG doesn't change anything


From: Denis Shirokov
Subject: [bug-gawk] External shell command REG doesn't change anything
Date: Fri, 9 Nov 2012 20:39:46 +0200

Hi GAWK

I found some problem with using REG shell command from GAWK script.
This command performs rw operations with windows registry. And this do
not work when i trying to execute this command from GAWK-script.
Actually this is not GAWK issue but maybe you can advice me something?
This is under Windows 2008R2x64 and Windows 7x64:

>gawk --version
GNU Awk 4.0.1
Copyright (C) 1989, 1991-2012 Free Software Foundation.

>type r.gwk
BEGIN{
c="REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\eGAWK\" /v \"abc\" /t
REG_SZ /d \"123\" /f"

        c| getline d; close(c)
        print "OUTPUT:"
        print d }

>gawk -f r.gwk
OUTPUT:
The operation completed successfully.

and this isn't change something in registry but if i try it direct
from command line or from batch file - it's work ok.

Thank you and if you do not have any idea you may no reply.

Digi



reply via email to

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