|
使用函数lr_whoami想查看用户信息,但执行日志中并没有打印出用户的信息。
运行时设置中,日志为扩展日志并勾选下面的选项
脚本如下:
int Vuser,scid;
char *vuser_group;
lr_whoami(&Vuser, &vuser_group, &scid);
该函数的帮助信息:
Returns information about the Vuser executing the script.
The lr_whoami function gets information about the Vuser.
Note that the sgroup parameter is a pointer to constant data and should only be read, not altered. Memory for the string is allocated automatically. You do not have to allocate explicitly in the script.
If you do not want to retrieve one or more of the parameters, replace the parameter name with NULL.
Not applicable for products that do not run individual Vusers.
请各位高手帮忙看下什么原因? 多谢!
[ 本帖最后由 cuizhihui 于 2008-1-31 16:46 编辑 ] |
|