All pastes #894926 Raw Edit

Unbenannt

public text v1 · immutable
·published 2008-02-07 12:50 UTC
rendered paste body
check_vm_state()
{
	/cygdrive/c/Programme/VMware/VMware\ Server/perl.exe "c:\Programme\VMware\VMware Server\vmware-cmd" -q "$1" getstate
}

test:

if   [ "$(check_vm_state "$1")" == "on" ]; then

alsways is false, if i call the function check_vm_state with the same parameter it returns: on