Do you have the Exec binding installed and does openhab have the needed permissions to run the sudo command?
Also see this topic.