Closed wangsu728 closed 7 years ago
# cloudcli exec -n golang -y -c "ls | awk '{print \$0}'" EXCUTE "ls | awk '{print $0}'" on root(cloudboot2.idcos.net): Command exec failed: Process exited with status 1 >>>>>>>>>>>>>>>>>>>> STDOUT >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> STDERR >>>>>>>>>>>>>>>>>>>> awk: cmd. line:1: {print awk: cmd. line:1: ^ unexpected newline or end of string time costs: 226.63254ms ========================================================== total time costs: 226.882136ms EXEC success nodes: 0 | fail nodes: 1 | timeout nodes: 0 # cloudcli exec -n golang -y -c "ls | awk '{print $0}'" EXCUTE "ls | awk '{print -bash}'" on root(cloudboot2.idcos.net): Command exec failed: Process exited with status 125 >>>>>>>>>>>>>>>>>>>> STDOUT >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> STDERR >>>>>>>>>>>>>>>>>>>> su: invalid option -- 'b' Try `su --help' for more information. time costs: 191.954665ms ========================================================== total time costs: 192.35605ms EXEC success nodes: 0 | fail nodes: 1 | timeout nodes: 0
使用 ssh 可以正常执行
# ssh cloudboot2.idcos.net "ls / | awk '{print \$0}'" bin boot dev etc home lib lib64 lost+found media mnt nfs opt proc root sbin selinux srv sys tmp usr var
fixed in v0.7.2
使用 ssh 可以正常执行