in reply to Re^3: issue with passing yes to the output of a command
in thread issue with passing yes to the output of a command

thanks guys i think adding "\" made the difference

($out,$err) = $ssh->capture2("zonecreate \"test1\", \"20:00:00:11:0d:3 +4:56:00\""); ($out,$err) = $ssh->capture2("echo yes\|cfgsave");

thanks friends again for help