setpgrp 0, $pgrp;
See perldoc perlfunc or any perl reference for details. This is a rather unportable function in its details, but should work for you.
After Compline,
Zaxo
In reply to Re: Setting the primary group from within a script
by Zaxo
in thread Setting the primary group from within a script
by Sanglant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |