Oct 3, 2018

[HDGEM] How to run script from Internet URL

curl -L | bash
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.

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 | bash /dev/stdin arg1 arg2  
Bourne shell also supports -s to read from stdin.
curl -sL | bash -s arg1 arg2

Posted By Blogger to HDGEM at 4/29/2017 08:36:00 AM

QuickBooks Self-Employed

Bigger tax refunds. Better organization. Manage your deductions with QuickBooks Self-Employed .