Last modified on 27 October 2012, at 22:16

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.

ARGUMENTSEdit

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

REFINEMENTSEdit

  • /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 CODEEdit

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"
]

{{BookCat}}