Copyright © tutorialspoint.com

PERL getppid Function


Syntax

getppid


Definition and Usage

Returns the process ID of the parent process.

Return Value

  • Process ID of the parent process

Example

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

$ppid = getppid();

print "Parent Process ID $ppid\n";


Copyright © tutorialspoint.com