[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] External shell command REG doesn't change anything
From: |
Eli Zaretskii |
Subject: |
Re: [bug-gawk] External shell command REG doesn't change anything |
Date: |
Fri, 09 Nov 2012 21:09:12 +0200 |
> Date: Fri, 9 Nov 2012 20:39:46 +0200
> From: Denis Shirokov <address@hidden>
>
> 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.
Could be the Windows 7 Registry virtualization in action, since
gawk.exe is probably a 32-bit executable, right? See
http://msdn.microsoft.com/en-us/library/windows/desktop/aa965884%28v=vs.85%29.aspx