Home > Unix > Run shell script from the Internet….

Run shell script from the Internet….

Occasionally, you may want to run a script from some url in the internet (for example from gist.github.com). This is how you may want to do it :

source <(curl -s https://gist.githubusercontent.com/Prosunjit/b6563a9ff2356ea7864b/raw/

d4f48b3fcece879a17d9b2cc441c2cd11d4a10f5/vim_style.sh)

or

source <(curl -s  https://gist.githubusercontent.com/Prosunjit/2d7f1842d35ba074a7b9/raw/

f8b614db26233ff6af74d1e789f08c34b1b3863c/nkill.sh)

note that no space between ‘source <‘ and ‘(…”

Advertisements
Categories: Unix
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: