try using pipe/fork/exec/some-combination. you want to get the program that outputs the page to finish even when the other script is going on. I think you can do it with a combination of fork and pipe || exec. if you follow merlyn's link, it'll probably tell you exactly what to do.