Open flands opened 11 years ago
I recently ran into the following issue:
/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments "-i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" Trollop::CommandlineError: option '--arguments' needs a parameter
I was able to workaround the issue with the following (notice the space between the double quote and -i):
/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments " -i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" /10.16.199.136/ha-datacenter/vms/vcsa>
I recently ran into the following issue:
/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments "-i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" Trollop::CommandlineError: option '--arguments' needs a parameter
I was able to workaround the issue with the following (notice the space between the double quote and -i):
/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments " -i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" /10.16.199.136/ha-datacenter/vms/vcsa>