상식적으로... shell이 redirection 표시자인 > 이하를 실행할 process에게 넘겨줄 리가 없습니다. 혹시 exec()에서 "test", ">", "test.out" 이런식으로 넣어주고 있는건 아닌가요? exec()는 주어진 것 그대로 넘겨줍니다.