Yeahhhhh ! Good idea : 

crm -F configure filter   \"sed '/op\\ monitor/s/fence/ignore/g'\"

with the \ and \\  works successfully !

Thanks a lot !
Alain



De :    "Ulrich Windl" <[email protected]>
A :     "General Linux-HA mailing list" <[email protected]>
Date :  29/11/2011 15:05
Objet : Re: [Linux-HA] Antw: Re: Pacemaker : how to modify configuration ?
Envoyé par :    [email protected]



>>> <[email protected]> schrieb am 29.11.2011 um 13:02 in Nachricht
<ofa8b89361.2ff3af11-onc1257957.00421e8a-c1257957.00427...@bull.net>:
> Hi
> Thanks, ok I've tried with filter, but don't find why this command is 
not 
> working (whereas 
> the sed command tested on a file beside is working) :
> 
> # crm -F configure filter "sed '/op monitor/s/fence/ignore/g'"
> Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
> etc.
> 
> Any idea where I am wrong ?

Just a guess (from the online help):

"Don't forget to put quotes around the filter if it contains
spaces. Further, if you use this in a single-shot mode (from the
`sh` command line), protect all quotes with a backslash.
Otherwise, they won't reach the `crm` shell parser."

Ulrich


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to