我在Windows机器上使用Websphere 8.5开发,但Tests和Prod是Mainframe上的Websphere 8.5。应用程序MyApp依赖于名为MyApp_Env的某些系统环境。基本上,此系统环境告知正在运行的环境(Dev,Test,Prod)。在Windows中,我设置为系统环境。当此应用程序进入大型机进行用户测试时,在Mainframe上运行的Websphere 8.5中,此类变量在Application Servers>中设置。 MyServer>过程定义>仆人>环境条目。我有权访问Test Websphere Admin控制台,所以我可以看到它。由于某些本地原因,我无法访问Prod Websphere管理控制台,我希望看到此变量值。我可以访问ishell所以我尝试了四种选择,(1)echo $ MyApp_Env,(2)设置MyApp_Env,(3)env MyApp_Env,(4)printenv MyApp_Env。我试图通过简单的printenv和env之后逐个查找而没有成功。 所以,我的问题是如何通过Unix shell发现MyApp_Env的价值?我确定变量是作为Websphere Servant.Environment条目之一但是如何打印它?我想我无法看到变量,因为它不属于运行到终端的shell的环境变量。但是,当然,必须存在一些方法来查看可用于与开放终端不同的其他进程的环境变量。
答案 0 :(得分:0)
虽然您无法访问Prod机器的管理控制台,但我假设您可以从Unix shell运行wsadmin。如果是这样,请使用文本编辑器创建名为myScript的脚本文件,类似于以下内容并使用以下命令运行它:wsadmin -f /pathToScript/myScript.jacl
# convert `y` to a numpy array for more convenient indexing
y = np.array(y)
# find unique group labels and their corresponding indices
label, idx = np.unique(x, return_inverse=True)
# make a list of arrays containing the y-values corresponding to each unique label
groups = [y[idx == i] for i, l in enumerate(label)]
# use `*` to unpack the list as a sequence of arguments to `stats.kruskal`
H, p = stats.kruskal(*groups)
print(H, p)
# 2.94545454545 0.22929927