cmd="find $volumePath/data -maxdepth 1 -type f -name 'GRA_*.log' -print0 | xargs -0 -n 100 rm -v"
# 双引号中bash子命令需要使用 `\"` 引用,否则会报错 "xargs argument line too long"
ssh -p $sshPort $hostIP -- "bash -c \"$cmd\""
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)