Hello, I am writing a program that uses Distributed package for parallelization. I have a question about messages passed from the workers to master. It seems to be printed on the stdout, even if the message is originally passed to stderr stream. Can I put such messages intended to print to stderr from workers to stderr on the master?
Simple example is here (example.jl):
using Distributed
addprocs(1) # add worker process
remotecall_fetch(()->println(stderr, "some errorr messages"), 2, )
After running julia example.jl >out.txt, 2>error.txt, the error.txt is blank and out.txt contains
From worker 2: some error messages
I want to redirect this messsages to stderr, and error.txt should contain the line:
some error messages
How can I implement this? I cannot do that?
Thank you.