Rebol Programming/call

USAGE:

edit
CALL cmd /input in /output out /error err /wait /console /shell /info /show 

DESCRIPTION:

edit

Executes a shell command to run another process.

CALL is a native value.

ARGUMENTS

edit
  • cmd -- The shell command or file (Type: string file block)

REFINEMENTS

edit
  • /input -- Redirects in to stdin
    • in -- (Type: any-string port file url none)
  • /output -- Redirects stdout to out
    • out -- (Type: string port file url none)
  • /error -- Redirects stderr to err
    • err -- (Type: string port file url none)
  • /wait -- Runs command and waits for exit
  • /console -- Runs command with I/O redirected to console
  • /shell -- Forces command to be run from shell
  • /info -- Return process information object
  • /show -- Show the output in a console window

SOURCE CODE

edit
call: native[
    "Executes a shell command to run another process." 
    cmd [string! file! block!] "The shell command or file" 
    /input "Redirects in to stdin" 
    in [any-string! port! file! url! none!] 
    /output "Redirects stdout to out" 
    out [string! port! file! url! none!] 
    /error "Redirects stderr to err" 
    err [string! port! file! url! none!] 
    /wait "Runs command and waits for exit" 
    /console "Runs command with I/O redirected to console" 
    /shell "Forces command to be run from shell" 
    /info "Return process information object" 
    /show "Show the output in a console window"
]