Execute a system command: Difference between revisions
Content added Content deleted
m (→{{header|APL}}) |
m (→{{header|APL}}) |
||
Line 275: | Line 275: | ||
<syntaxhighlight lang="apl"> |
<syntaxhighlight lang="apl"> |
||
⍝⍝ NOTE: one MUST give the full absolute path to the program (eg. /bin/ls) |
⍝⍝ NOTE: one MUST give the full absolute path to the program (eg. /bin/ls) |
||
⍝⍝ Exercise: Can you improve this by parsing the value of |
|||
⍝⍝ ⎕ENV 'PATH' ? |
|||
⍝⍝ |
|||
h ← ⎕fio['fork_daemon'] '/bin/ls /var' |
h ← ⎕fio['fork_daemon'] '/bin/ls /var' |
||
backups games lib lock mail run tmp |
backups games lib lock mail run tmp |