Hence my comment about your not specifying which OS you were attempting this on. It is known that fork() doesn't always play nice on Windows.
Suggest you look at the solution proposed by brer flyingmoose here. In order to do the exit that you ask for replace his line that says $proc->wait(); with exit(0); and you should be OK.
DISCLAIMER: Don't have a Windows 2000 box to test this on so do your own testing
| Peter L. Berghold -- Unix Professional Peter at Berghold dot Net | |
| Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice. | |
In reply to Re: Re: Re: launch and then exit out of app
by blue_cowdawg
in thread launch and then exit out of app
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |