<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > Internet and Network Commands |
MiniRobotLanguage (MRL)
GUN. Command
Get User Name
Intention
Get the name of the user that is actually running your script. When using the
1.1 '#RAU: - Run As User it may be a good idea to find out, if the script really got the proper user.
GUN. provides you this information. It shows you, which user runs the actual script.
If you run GUN. without a parameter, the stack will get the information like in the picture below.
If you provide a variable for the User-Name, the user name will not be on the stack, but in this variable. The stack will then look like this.
Syntax
GUN.[P1][|P2]
Parameter Explanation
P1 - (optional) Variable for the result.
P2 - (optional) the letter N, then another Algo is used.
Example
' Show GUN. -Get User Name Command
STS.LOCAL
STS.CLEAR
GUN.
' show Actual Stack
DMP.6
MBX. Sample 1
STS.CLEAR
GUN.$$RES
' show Actual Stack
DMP.6
MBX. Sample 2, Name is $$RES
ENR.
Remarks
-
Limitations:
-
See also: