W3cubDocs

/Nushell

run-external for system

Runs external command.

Signature

> run-external {flags} (command) ...rest

Flags

  • --redirect-stdout, -: redirect stdout to the pipeline
  • --redirect-stderr, -: redirect stderr to the pipeline
  • --redirect-combine, -: redirect both stdout and stderr combined to the pipeline (collected in stdout)
  • --trim-end-newline, -: trimming end newlines

Parameters

  • command: external command to run
  • ...rest: arguments for external command

Input/output types:

input output
any any

Examples

Run an external command

>run-external"echo""-n""hello"

Redirect stdout from an external command into the pipeline

>run-external--redirect-stdout"echo""-n""hello"|split chars

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/run-external.html