transfer-script-and-run
约 28 字
预计阅读 1 分钟
1
2
3
4
5
6
| filename=""
base64_script=$(base64 /usr/local/src/${filename})
cmd="echo '---run---'; mkdir -p /usr/local/src; echo '${base64_script}' | base64 -di > /usr/local/src/${filename}; bash /usr/local/src/${filename}; echo '---end---'"
bash -c "${cmd}"
|