目录

transfer-script-and-run

目录
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}"