免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1788 | 回复: 3
打印 上一主题 下一主题

用Client Access Toolkit,执行远程命令的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-23 10:03 |只看该作者 |倒序浏览
最近在用Client Access Toolkit做开发,用到了cwbRC_RunCmd,执行远程命令,但是怎么能够得到命令的返回结果呢?比如: 我执行wrksyssts,统计结果该如何得到?用cwbSV_GetErrTextIndexed得到的是:   
CPD4090 - Printer device PRT01 not found. Output queue changed to QPRINT in
library QGPL.
请各位大虾帮忙!

论坛徽章:
0
2 [报告]
发表于 2006-08-23 12:45 |只看该作者
Display Formatted Message Text                        
                                                             System:   XXXXXXX
Message ID . . . . . . . . . :   CPD4090                                       
Message file . . . . . . . . :   QCPFMSG                                       
   Library  . . . . . . . . . :     QSYS                                       
                                                                                
Message . . . . :   Printer device &4 not found. Output queue changed to      
   QPRINT in library QGPL.                                                      
Cause . . . . . :   The printer device &4 not found.  The output queue was     
   changed for the spooled printer file &2 in library &3.                       
Recovery  . . . :   Do one of the following before you run the program again:  
     -- Change or override the printer device name for the spooled printer file
   &2 in library &3 using either the Change Printer File (CHGPRTF) command or   
   the Override Printer File (OVRPRTF) command.                                 
     -- Add or create the configuration for the printer (CRTDEVPRT command).   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         Bottom
Press Enter to continue.                                                      
                                                                                
F3=Exit   F11=Display unformatted message text   F12=Cancel

论坛徽章:
0
3 [报告]
发表于 2006-08-23 13:40 |只看该作者
cwbRC_RunCmd,执行远程命令WRKSYSSTS,能够得到像在as400上执行命令WRKSYSSTS,得到memory pools的信息吗?怎么得到?
qingzhou教教我。

论坛徽章:
0
4 [报告]
发表于 2006-08-23 19:31 |只看该作者
你可以按照如下方法获得WRKSYSSTS的结果输出在本地PC端:

PC 上有 REXEC.EXE 的可执行EXE文件,先在AS/400 上启动*REXEC服务:
===>STRTCPSVR SERVER(*REXEC)

然后在DOS下执行
C:\>REXEC xxx.xxx.xxx.xxx -l as400user WRKSYSSTS>C:\data\syssts.txt

备注:
xxx.xxx.xxx.xxx是AS/400 IP address
-l 是小写的L字母
as400user是400登陆帐户
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP