- 论坛徽章:
- 0
|
CLP中sbmjob后立即更改LIBL和ENVVAR等等对其有何影响?
qingzhou分析得很有道理,这个usrprf的确有它的特殊性,他甚至连password都没有,是不能用来登陆的。但是它是启动domino server服务及相关任务所必需的profile,这是来自原文:
All Domino applications must run under jobs that use the QNOTES user profile.
The user profile defines operational characteristics for jobs, and is the source for the
special authorities that jobs need. The following processes run under the QNOTES
profile when they are started:
• The Domino server
• Programs that the Domino server starts as a result of ServerTasks or
ServerTasksAt settings in the NOTES.INI file
• Programs that start as a result of Program documents in the Domino Directory
• Hook drivers and extension manager applications that run in the Domino server
• Agents that run on the Domino server
• Programs that start when you enter the Load command on the Domino server
console
If your application is not designed to run in the above processes (such as an
interactive application), you must modify your application so that it runs under the
QNOTES user profile using one of the following methods:
• Inside your application, switch to the QNOTES profile by using the following
system APIs:
• QSYGETPH - get profile handle
• QWTSETP - set profile
• Use the Submit Job command (SBMJOB) to submit the job to run under
QNOTES.
• Use the RUNDOMCMD utility that ships with Domino 6 for iSeries and is
available as a download from the following Web address:
http://www.ibm.com/eserver/iseries/domino/devtools/rundomcmd/rundomcmd.
htm
This utility switches to the QNOTES user profile, runs your application, sets up
the PATH and current directory correctly and then switches back to the user
profile you were using. Using this utility, you do not need to write additional
code in your applications.
• Use the SETDOMENV CL command
我选用的是其中的SBMJOB的方式来以QNOTES的USRPRF运行test。
另外:说来说去,你是想临时测试一个TEST程序,这个TEST程序要求的环境跟当前DOMINO跑的环境有些差异,所以想先改变DOMINO环境来先运行TEST程序,然后执行完TEST后再修改回去。
我测试的环境与domino要求的环境有些差异,所以先改变当前环境来符合domino的环境(为什么是QNOTES),再来运行该test程序,然后再恢复回去。 |
|