Skip to:
Allow the output of a previous command in CommandBox to be piped directly to a native binary like so:
#createguid | !clip or #createguid | run clip
When the run command receives two inputs, it will assume the first input is the piped input and the second input is the actual command to run.
Note there are limitations. You cannot pipe the output of the run command like so:
#createguid | !clip | #ucase
because as soon as any text appears after "run" or "!", then the rest of the line is "eaten" and passed to the native shell.
Also you cannot build up a command like so
echo "clip" | run
and also pipe input into the native binary at the same time because only one parameter can be piped into a command at a time.
Allow the output of a previous command in CommandBox to be piped directly to a native binary like so:
#createguid | !clip or #createguid | run clip
When the run command receives two inputs, it will assume the first input is the piped input and the second input is the actual command to run.
Note there are limitations. You cannot pipe the output of the run command like so:
#createguid | !clip | #ucase
because as soon as any text appears after "run" or "!", then the rest of the line is "eaten" and passed to the native shell.
Also you cannot build up a command like so
echo "clip" | run
and also pipe input into the native binary at the same time because only one parameter can be piped into a command at a time.