I have problems with the difference between the system() call and a
Everything work fine until I try to redirect the output of the script.
A normal run is fine.
The redirected version with test.rb >test.log 2>&1 stops with
“bad file descriptor”.
If you try the command independent, you will see that system() causes
I used system, due I can see the output during the run.
ls it will be only visible at the end.