Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Lotus notes 阅读来自“的回复”;告诉;命令_Lotus Notes_Lotus Domino_Lotusscript - Fatal编程技术网

Lotus notes 阅读来自“的回复”;告诉;命令

Lotus notes 阅读来自“的回复”;告诉;命令,lotus-notes,lotus-domino,lotusscript,Lotus Notes,Lotus Domino,Lotusscript,我需要读取命令的响应(在Domino控制台上),比如:“告诉http显示安全性” 当我执行“显示”命令时,它会工作(参见下面的示例)。Res将得到完整的响应 res = notesSession.SendConsoleCommand("server", "show server") 但是,这不适用于“tell”命令。它返回一个字符串 res = notesSession.SendConsoleCommand("server", &qu

我需要读取命令的响应(在Domino控制台上),比如:“告诉http显示安全性”

当我执行“显示”命令时,它会工作(参见下面的示例)。Res将得到完整的响应

res = notesSession.SendConsoleCommand("server", "show server")
但是,这不适用于“tell”命令。它返回一个字符串

res = notesSession.SendConsoleCommand("server", "tell http show security")
命令已在远程服务器上执行。使用“实时”控制台选项, 将来,要查看来自服务器的响应

我也试着去做

tell http show security >http_security.txt
文件得到相同的字符串

命令已在远程服务器上执行。使用“实时”控制台选项, 将来,要查看来自服务器的响应

有没有一个很好的方法来阅读回复

p、 我希望避免扫描log.nsf,因为这将是一项繁重的任务


谢谢。

Tell命令指示控制台向其他任务发送消息。我不认为控制台可以坐在那里等待其他任务的输出,以便将其发送回您。在其他问题中,它无法知道另一个任务何时从tell生成输出,或者只是编写一些随机日志消息。@RichardSchwartz我同意,我也这么认为。不幸的是,解决这个问题的唯一方法似乎是解析log.nsf,这真是个坏主意。谢谢