Copyright © tutorialspoint.com
Syntax
Definition and UsageReturns the next password entry from the /etc/passwd file. This is used in combination with the setpwent and endpwent functions to iterate over the password file. In a list context, returns ($name, $passwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell) = getpwent; Return Value
ExampleTry out following example:
|
Copyright © tutorialspoint.com