Bash: Run Script on the Fly: Difference between revisions

From WikiMLT
m (Стадий: 5 [Фаза:Утвърждаване, Статус:Авторизиран]; Категория:Linux Server)
m (Стадий: 6 [Фаза:Утвърждаване, Статус:Утвърден]; Категория:Linux Server)
 
Line 17: Line 17:
{{devStage  
{{devStage  
  | Прндл  = Linux Server
  | Прндл  = Linux Server
  | Стадий = 5
  | Стадий = 6
  | Фаза  = Утвърждаване
  | Фаза  = Утвърждаване
  | Статус = Авторизиран
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = Spas
  | РзбПт  = Spas

Latest revision as of 17:46, 28 September 2022

Ex­am­ple

The curl com­mand will fetch the in­stal­la­tion script from the repos­i­to­ry github​.com/​m​r​b​v​r​z​/​s​e​g​o​e​–​u​i​–​linux and by the help of the process sub­sti­tu­tion op­er­a­tor <(…) (which will be treat­ed as pseu­do-file) the out­put of curl will be ex­e­cut­ed 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

Ref­er­ences