Difference between revisions of "GETGRNAM()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) (→Description) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to get group name | + | Function to get Linux group name |
− | + | ||
==Syntax== | ==Syntax== | ||
GETGRNAM() | GETGRNAM() | ||
− | |||
==See Also== | ==See Also== | ||
[[ACCESS()]], [[GETENV()]], [[GETGID()]], [[GETPID()]], [[GETUID()]], [[PUTENV()]] | [[ACCESS()]], [[GETENV()]], [[GETGID()]], [[GETPID()]], [[GETUID()]], [[PUTENV()]] | ||
− | |||
==Description== | ==Description== | ||
− | The GETGRNAM() function returns the group name of the current user. | + | The GETGRNAM() function returns the group name of the current Linux user. |
+ | Note: this refers to the OS user account on Linux, not the Lianja [[Users and Roles]]. | ||
==Example== | ==Example== | ||
Line 20: | Line 18: | ||
@2,3 get name | @2,3 get name | ||
@3,3 get rates; | @3,3 get rates; | ||
− | when getgrnam() = " | + | when getgrnam() = "lianja" |
read | read | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Environment Functions]] | [[Category:Environment Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 12:18, 17 December 2021
Contents
Purpose
Function to get Linux group name
Syntax
GETGRNAM()
See Also
ACCESS(), GETENV(), GETGID(), GETPID(), GETUID(), PUTENV()
Description
The GETGRNAM() function returns the group name of the current Linux user.
Note: this refers to the OS user account on Linux, not the Lianja Users and Roles.
Example
use accounts @2,3 get name @3,3 get rates; when getgrnam() = "lianja" read