I was looking for this today as well and found what I think you are looking for
to get the output of ls > mydir.txt, I had to wrap in shell.
wait sh -c "ls > mydir.txt"
more info here:
I was looking for this today as well and found what I think you are looking for
to get the output of ls > mydir.txt, I had to wrap in shell.
wait sh -c "ls > mydir.txt"
more info here: