Bash: Run Script on the Fly: Difference between revisions
From WikiMLT
m Стадий: 3 [Фаза:Разработване, Статус:Разработван]; Категория:Linux Server |
|||
Line 1: | Line 1: | ||
<noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | <noinclude><!--[[Category:Linux_Server|?]]-->{{ContentArticleHeader/Linux_Server}}</noinclude> | ||
== Example == | |||
The <code>curl</code> command below will fetch the installation script from the repository [https://github.com/mrbvrz/segoe-ui-linux github.com/mrbvrz/segoe-ui-linux] and by the help of the file substitution operator <code><()</code> the output of curl will be executed via <code>bash</code>.<syntaxhighlight lang="shell" line="1"> | |||
bash <(curl -s https://raw.githubusercontent.com/mrbvrz/segoe-ui-linux/master/install.sh) | |||
</syntaxhighlight> | |||
== References == | |||
* Stack Overflow: [https://stackoverflow.com/questions/5735666/execute-bash-script-from-url Execute bash script from URL] | |||
<noinclude> | <noinclude> |
Revision as of 23:39, 27 September 2022
Example
The curl
command below will fetch the installation script from the repository github.com/mrbvrz/segoe–ui–linux and by the help of the file substitution operator <()
the output of curl will be executed via bash
.
bash <(curl -s https://raw.githubusercontent.com/mrbvrz/segoe-ui-linux/master/install.sh)
References
- Stack Overflow: Execute bash script from URL