try standard unix cat ">"

julia script.jl > output.txt

On Friday, 29 August 2014 17:12:37 UTC+1, Thomas Covert wrote:
>
> Suppose I wanted to run a julia script in "batch" mode, like this
>
> bash$ julia script.jl
>
> How would I tell julia to save the visual output of this to a text file? 
>  As far as I can tell, "julia script.jl" only sends println() statements 
> and the final statement in script.jl to STDOUT.  Is there a way to get 
> behavior more similar to the output of interactive mode?
>
> That is, if I had run julia interactively, and typed 
>
> julia> include("script.jl")
>
> I'd see all the commands that script.jl executes, anything that is printed 
> using println, and the value of the last expression.  How can I replicate 
> this behavior in batch mode?
>

Reply via email to