 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
DEEPAK JAIN
Joined: 26 Jun 2018 Posts: 5 Country: India |
|
24 x 7 Scheduler not running file with environment variable |
|
All the jobs are getting failed and showing below error when we put its path with environment variable as highlighted:
Job errors: Create process error. Extended error: Cannot run program "%ZN_TASKS_PRICE_UPLOAD%\ZN_Batches\credit_margin_export.bat": CreateProcess error=2, The system cannot find the file specified
But when we are using complete URL then scheduler is able start the job. Although scheduler is running as service and environment variable is system variable
|
|
Tue Jun 26, 2018 9:39 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Have you restarted the service after changing the environment variable?
|
|
Tue Jun 26, 2018 11:02 am |
|
 |
DEEPAK JAIN
Joined: 26 Jun 2018 Posts: 5 Country: India |
|
24 x 7 Scheduler not running file with environment variable |
|
thanks for the response.
I have tried echo "/%ZN_TASKS_PRICE_UPLOAD%/" > c:\temp\test.log and reset the services after setting up environment variables.But it is still not working.I have tried cmd / c in front of command line and it is running the batch file.Could you please suggest how to wok without cmd /c as our all jobs are configured with environment variables.
|
|
Fri Jun 29, 2018 3:55 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Somebody suggested to me to add cmd /C to the environment variable value. This little change should resolve the issue. Hope that works for you.
|
|
Fri Jun 29, 2018 9:04 am |
|
 |
DEEPAK JAIN
Joined: 26 Jun 2018 Posts: 5 Country: India |
|
24 x 7 Scheduler not running file with environment variable |
|
Actually we are not allowed to make such change (add cmd/ c in front of environment variable) in our production environment and also older version is working fine without adding this.
|
|
Fri Jul 06, 2018 2:36 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|