Editare un file in modalità DOS da CFEngine: Difference between revisions
Jump to navigation
Jump to search
m New page: {{Stub}} { /files/netlogon/user.cmd AutoCreate EmptyEntireFilePlease BeginGroupIfNoLineMatching "RE... |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Alla '''fine''' dei comandi di editing inserire | |||
FixEndOfLine "dos" | |||
'''Attenzione: SERVONO le VIRGOLETTE !''' | |||
Ad esempio: | |||
<pre> | |||
{ /files/netlogon/user.cmd | |||
AutoCreate | |||
EmptyEntireFilePlease | |||
BeginGroupIfNoLineMatching "REM MANAGED BY CFENGINE 2009 | |||
Append 'REM MANAGED BY CFENGINE 20090061701' | |||
Append '@echo off' | |||
Append 'SET DOM=$(sitecode)' | |||
Append 'SET LOGORES=$(logores)' | |||
Append 'IF EXIST \\\\%DOM%SERVER\\Netlogon\\common.cmd C | |||
Append 'REM MANAGED BY CFENGINE | |||
EndGroup | |||
FixEndOfLine "dos" | |||
} | |||
</pre> | |||
http://www. | |||
==Riferimenti== | |||
*[http://www.cfengine.org/manuals/cf2-Reference.html#FixEndOfLine Cfengine v2 reference] | |||
Latest revision as of 10:57, 28 October 2010
Alla fine dei comandi di editing inserire
FixEndOfLine "dos"
Attenzione: SERVONO le VIRGOLETTE ! Ad esempio:
{ /files/netlogon/user.cmd
AutoCreate
EmptyEntireFilePlease
BeginGroupIfNoLineMatching "REM MANAGED BY CFENGINE 2009
Append 'REM MANAGED BY CFENGINE 20090061701'
Append '@echo off'
Append 'SET DOM=$(sitecode)'
Append 'SET LOGORES=$(logores)'
Append 'IF EXIST \\\\%DOM%SERVER\\Netlogon\\common.cmd C
Append 'REM MANAGED BY CFENGINE
EndGroup
FixEndOfLine "dos"
}