Tutorials Point


  Perl Home

  PERL Functions

© 2013 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL getpgrp Function



Advertisements

Syntax

getpgrp EXPR

getpgrp


Definition and Usage

Returns the process group for the process ID specified by EXPR, or the current process group if none is specified.

Return Value

  • Process group ID

Example

Try out following example:
#!/usr/bin/perl

$pgid = getpgrp();

print "Current process Group ID $pgid\n";



Advertisements


  

Advertisements