curl方式执行shell脚本时如何传参
curl方式执行shell脚本时如何传参
curl ftp://192.168.166.21:/system_optimize.sh | bashcurl -s ftp://192.168.166.21:/system_optimize.sh | bash -s arg1 arg2bash <(curl -s ftp://192.168.166.21:/system_optimize.sh) arg1 arg2curl -s ftp://192.168.166.21:/system_optimize.sh | bash -s -- arg1 arg2curl -s ftp://192.168.166.21:/system_optimize.sh | bash -s -- -p arg1 -d arg2echo 'i=1; for a in $@; do echo "$i = $a"; i=$((i+1)); done' | bash -s -- -a1 -a2 -Bash选项
Last updated