Bash: Run Script on the Fly: Difference between revisions
From WikiMLT
m Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server |
|||
Line 17: | Line 17: | ||
{{devStage | {{devStage | ||
| Прндл = Linux Server | | Прндл = Linux Server | ||
| Стадий = | | Стадий = 4 | ||
| Фаза = | | Фаза = Авторизиране | ||
| Статус = | | Статус = Разработен | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = | | РзбПт = Spas | ||
| АвтПт = | | АвтПт = {{REVISIONUSER}} | ||
| УтвПт = Spas | | УтвПт = Spas | ||
| ИдтДт = 28.09.2022 | | ИдтДт = 28.09.2022 | ||
| РзбДт = | | РзбДт = 28.09.2022 | ||
| АвтДт = | | АвтДт = {{Today}} | ||
| УтвДт = 28.09.2022 | | УтвДт = 28.09.2022 | ||
| ИдтРв = [[Special:Permalink/32026|32026]] | | ИдтРв = [[Special:Permalink/32026|32026]] | ||
| РзбРв = | | РзбРв = [[Special:Permalink/32052|32052]] | ||
| АвтРв = | | АвтРв = {{REVISIONID}} | ||
| РзАРв = [[Special:Permalink/32049|32049]] | | РзАРв = [[Special:Permalink/32049|32049]] | ||
| РзУРв = [[Special:Permalink/32051|32051]] | | РзУРв = [[Special:Permalink/32051|32051]] | ||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 16:46, 28 September 2022
Example
The curl
command will fetch the installation script from the repository github.com/mrbvrz/segoe–ui–linux and by the help of the process substitution operator <(…)
(which will be treated as pseudo-file) the output of curl
will be executed via bash
.
bash <(curl -s https://example.com/path-to/raw/install.sh)
curl -s https://example.com/path-to/raw/install.sh | bash -s arg1 arg2
References
- Stack Overflow: Execute bash script from URL
- Ask Ubuntu: "/dev/fd/63 No such file or directory"