I didn't see where anybody actually explained the source of your problem (just suggest alternatives).
The problem is that you have the parent doing exec and have the child just say "In test1..." and then "All done!". The child exits, not the parent. The parent continues on running test2.pl. So you won't get a prompt back until test2.pl exits.
Update: Actually, I believe I am mistaken and that Crackers2 is correct.
- tye
In reply to Re: exec function does not return command prompt (!child)
by tye
in thread exec function does not return command prompt
by casman46
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |