I don't see the need for two programs from what you show, but assuming your design is correct fork will let you exec B
That is enough if you are certain that B will run longer than the remainder of A. Otherwise you must prevent B from going zombie.defined( my $foo = fork) or die $!; $foo or exec '/path/to/B', @parms;
After Compline,
Zaxo
In reply to Re: Calling a Program from a Program
by Zaxo
in thread Calling a Program from a Program
by Lost_ego
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |