The -L flag is for location. If the server reports that the requested page has moved to a different location, this option will make curl redo the request on the new place.
curl -L http://hdgem.com/url | bash
The pipe | links the two commands so that the output of the curl command becomes the input of the bash command.
If you want to run a script from GitHub and you need to get the URL of raw script.
To pass arguments to the script:
curl -sL http://i88.ca/url | bash /dev/stdin arg1 arg2
Bourne shell also supports
-sto read from stdin.
curl -sL http://goyun.info/url | bash -s arg1 arg2
Posted By Blogger to HDGEM at 4/29/2017 08:36:00 AM