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

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

Question
Virginia Rogers · Apr 20, 2021

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é
Product version: Caché 2017.1
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2017.1

Source URL:https://community.intersystems.com/post/what-determines-environment-zf-1