Tuesday 12 January 2016

Julia: Run system commands


By using ‘run’ function, you can execute system commands.
julia> run(`pwd`)
/Users/harikrishna_gurram

julia> run(`cal`)
   December 2015
Su Mo Tu We Th Fr Sa
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31


Previous                                                 Next                                                 Home

No comments:

Post a Comment