Published on InterSystems Developer Community (https://community.intersystems.com)

主页 > 来自英文社区的问题: 是什么决定$ ZF(-1)的环境?

问题
Michael Lei · 四月 21, 2021

来自英文社区的问题: 是什么决定$ ZF(-1)的环境?

你好,

我在用一个类方法中使用$ ZF(-1)来唤起一个CSP 页面。

什么因素决定了产生过程的环境?如果使用$ ZF(-1,“ echo hello world> output.txt”),则生成的文件归cacheusr:cacheusr拥有。但是,当我使用$ ZF(-1,“ printenv> output.txt”)时,无论我在运行Web应用程序时使用哪个Cache用户名登录,环境都是来自我的个人unix帐户。

谢谢

 

What determines the environment for $ZF(-1)?

Hello,

I'm using $ZF(-1) in a class method which will be invoked from a csp page.

What determines the environment of the spawned process?  If I use $ZF(-1,"echo hello world > output.txt"), the resulting file is owned by cacheusr:cacheusr.  However, when I use $ZF(-1,"printenv > output.txt"), the environment is from my personal unix account, no matter which Cache username I'm logged in under when running the web application.  

Thanks

#CSP #Caché
产品版本: Caché 2017.1

源 URL: https://cn.community.intersystems.com/post/%E6%9D%A5%E8%87%AA%E8%8B%B1%E6%96%87%E7%A4%BE%E5%8C%BA%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9A-%E6%98%AF%E4%BB%80%E4%B9%88%E5%86%B3%E5%AE%9A-zf%EF%BC%88-1%EF%BC%89%E7%9A%84%E7%8E%AF%E5%A2%83%EF%BC%9F