Hi,

On Thu, Feb 25, 2010 at 12:45:23PM +0100, [email protected] wrote:
> 
> Hi, i want to edit a resource listed by crm configure show via
> batch/cmdline.
> 
> current:
> 
> group loadbalancer ldirectord vip_1 vip_2
> 
> should be changed to:
> 
> group loadbalancer ldirectord vip_1 vip_2 vip_3
> 
> 
> I tried 
> 
> echo "group loadbalancer ldirectord vip_1 vip_2 vip_3" | crm configure
> edit gp_LVS
> 
> But there is following message:
> 
> INFO: no curses support: you won't see colors
> INFO: edit not allowed in batch mode

Edit means invoking editor, but you can't do that if there's no
terminal. Right now, there's no stream editor, though that may
change.

This should do:

cat <<EOF | crm configure
delete loadbalancer
group loadbalancer ldirectord vip_1 vip_2 vip_3
EOF

> Btw. 
> 
> where can the EDITOR or PAGER been controlled?
> Currently it is vi and less 

# crm options editor the_other_editor
# crm options pager the_other_pager

You should also save options, if you set them interactively.

Thanks,

Dejan

> Thanks for your reply in advance.
> 
> Tom.
> _______________________________________________
> 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