Jump to content

Rebol Programming/call

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
CALL cmd /input in /output out /error err /wait /console /shell /info /show 

DESCRIPTION:

[edit | edit source]

Executes a shell command to run another process.

CALL is a native value.

ARGUMENTS

[edit | edit source]
  • cmd -- The shell command or file (Type: string file block)

REFINEMENTS

[edit | edit source]
  • /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 | edit source]
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"
]