because the file tries to be written as dsi user instead of agent's user ?
if then, how can i put a conf in the agent to set this tmp access right to 777 by default ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
alright i thought echo "DATE_TRT=${date_trt}" >> ${JS7_RETURN_VALUES} meant i create en JS7 env var named DATE_TRT with the value incide the $date_trt from the script.
checked this, but still got the error of temporary file i can't find how to solve
running the jobs without sudo su - worked fine, the 2 job get the value from job 1
but, i have to run the job in specific user env, so i have to keep the sudo su - dsi << EOF before executing, and that cause the temp file error.
only got this error to pass var from job to another, on standalone jobs (without env vars) i don't have this error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Is there a way in JS7 to pass a variables calculated from job1 to job2 ?
for exemple:
job1 : i have a small process to calculate a value and assign it to var1
job2 : use var1 to get the result for another process.
How can i archive that ?
i was looking for ressource pool, but it seems it is more use for contant var you can't change for all the jobs.
Hi Chico,
the JS7 - How to pass variables to subsequent jobs article explains how to achieve this.
tryed but still got errors.
for info :
on my job server, the agent is installed as js7 user.
js7 have sudo right to su to other user without asking password.
i have a chain of 2 job
job 1 :
job2 : + it has an assigned evironnment variable DATE_TRT = $date_trt
for me it's the same as to doc says.
But, runs failed at job 1 with this errors :
because the file tries to be written as dsi user instead of agent's user ?
if then, how can i put a conf in the agent to set this tmp access right to 777 by default ?
Hi Chico,
you have a spelling error in your confirugration.
echo "DATE_TRT=${date_trt}" >> ${JS7_RETURN_VALUES}alright i thought echo "DATE_TRT=${date_trt}" >> ${JS7_RETURN_VALUES} meant i create en JS7 env var named DATE_TRT with the value incide the $date_trt from the script.
checked this, but still got the error of temporary file i can't find how to solve
running the jobs without sudo su - worked fine, the 2 job get the value from job 1
but, i have to run the job in specific user env, so i have to keep the sudo su - dsi << EOF before executing, and that cause the temp file error.
only got this error to pass var from job to another, on standalone jobs (without env vars) i don't have this error.