Wget, Curl and POST (refs): Difference between revisions

From WikiMLT
mNo edit summary
mNo edit summary
Line 1: Line 1:
Download a script from '''PasteBin''' by <code>curl</code>:
Download a script from [https://pastebin.com/raw/HrLTibuR PasteBin] by <code>curl</code>:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="shell" line="1">
curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash
curl https://pastebin.com/raw/HrLTibuR | \
sudo chmod +x /var/www-security/security-assistant.bash
sed -e 's/\r$//' | sudo tee /ust/local/bin/merge-video-sub.sh && \
sudo chmod +x /ust/local/bin/merge-video-sub.sh
</syntaxhighlight>
</syntaxhighlight>
References:
References:

Revision as of 14:27, 5 August 2022

Down­load a script from Paste­Bin by curl:

curl https://pastebin.com/raw/HrLTibuR | \
sed -e 's/\r$//' | sudo tee /ust/local/bin/merge-video-sub.sh && \
sudo chmod +x /ust/local/bin/merge-video-sub.sh

Ref­er­ences: