Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Execute-a-system-command/J/execute-a-system-command.j
Normal file
15
Task/Execute-a-system-command/J/execute-a-system-command.j
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
load'task'
|
||||
|
||||
NB. Execute a command and wait for it to complete
|
||||
shell 'dir'
|
||||
|
||||
NB. Execute a command but don't wait for it to complete
|
||||
fork 'notepad'
|
||||
|
||||
NB. Execute a command and capture its stdout
|
||||
stdout =: shell 'dir'
|
||||
|
||||
NB. Execute a command, provide it with stdin,
|
||||
NB. and capture its stdout
|
||||
stdin =: 'blahblahblah'
|
||||
stdout =: stdin spawn 'grep blah'
|
||||
Loading…
Add table
Add a link
Reference in a new issue