4 ms·
In Julia, a shell command is a semicolon away in the REPL: ;ls -al Plus, it borrows the backtick notation from Perl: run(`ls -al`) And you can read the stri
by msravi 10y ago
In Julia, a shell command is a semicolon away in the REPL:
;ls -al
Plus, it borrows the backtick notation from Perl:
run(`ls -al`)
And you can read the string returned for processing further within Julia:
x = readstring(`ls -al`)
And it supports pipelines...
http://docs.julialang.org/en/latest/manual/running-external-programs.html http://docs.julialang.org/en/latest/manual/running-external-...
- milesrout 10y agoThat's basically giving up, though. It doesn't make running subprocesses better, it makes running shell subprocesses better.