programming-examples/perl/SystemFunction/The getpgrp function retrieves the process group ID for a particular process.pl
2019-11-15 12:59:38 +01:00

6 lines
179 B
Perl

# The syntax of the getpgrp function is pgroup = getpgrp (pid);
#!/usr/local/bin/perl
$pgroup = getpgrp (0);
print ("The process group for this program is $pgroup.\n");