Cannot pass environment variables containing ";" via job submitI have a cluster with Windows HPC Server 2008 and Microsoft HPC Pack. I am trying to submit a job using the &quot;job submit&quot; command that needs to set an environment variable with semi-colon delimited values for each task. I have tried the following alternatives, but each of them fails in the same manner:<br/> Microsoft Windows [Version 6.0.6001]<br/> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.<br/> <br/> C:\Users\XXXXX&gt;job submit /env:key=&quot;value1;value2&quot; dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> C:\Users\XXXXX&gt;job submit /env:&quot;key=value1;value2&quot; dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> C:\Users\XXXXX&gt;job submit /env:key=value1;value2 dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> Could someone please let me know what I am doing incorrectly? The error message is quite incomprehensible and the documentation did not address this problem.© 2009 Microsoft Corporation. All rights reserved.Tue, 05 May 2009 18:29:02 Za2c62ba3-1539-4d63-9728-dba792da6dc7http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#a2c62ba3-1539-4d63-9728-dba792da6dc7http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#a2c62ba3-1539-4d63-9728-dba792da6dc7Dr.Darshanhttp://social.microsoft.com/Profile/en-US/?user=Dr.DarshanCannot pass environment variables containing ";" via job submitI have a cluster with Windows HPC Server 2008 and Microsoft HPC Pack. I am trying to submit a job using the &quot;job submit&quot; command that needs to set an environment variable with semi-colon delimited values for each task. I have tried the following alternatives, but each of them fails in the same manner:<br/> Microsoft Windows [Version 6.0.6001]<br/> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.<br/> <br/> C:\Users\XXXXX&gt;job submit /env:key=&quot;value1;value2&quot; dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> C:\Users\XXXXX&gt;job submit /env:&quot;key=value1;value2&quot; dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> C:\Users\XXXXX&gt;job submit /env:key=value1;value2 dir<br/> Bad format for 'env' parameter.  Should be /env:name=value;*<br/> <br/> Could someone please let me know what I am doing incorrectly? The error message is quite incomprehensible and the documentation did not address this problem.Wed, 08 Apr 2009 19:59:35 Z2009-04-08T19:59:35Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#1e6484ea-fc53-4240-a3ba-dc33ca460386http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#1e6484ea-fc53-4240-a3ba-dc33ca460386MWirtzhttp://social.microsoft.com/Profile/en-US/?user=MWirtzCannot pass environment variables containing ";" via job submitI believe you're not doing anything wrong, because the &quot;job submit&quot; command seems to use the &quot;;&quot; as a string delimiter while parsing the argument /env. I guess it's just impossible that way. Maybe you could try to add the set variable command to your commandline string  e.g. like this:<br/> <br/> job submit set key=value1;value2 ^&amp;^&amp; dir<br/> <br/> Make sure to mask the &quot;&amp;&quot; with &quot;^&quot; because otherwise the dir command would be executed directly after your submission command in the local shell.<br/> Hope this helps.<br/> <br/> - Michael<br/>Fri, 17 Apr 2009 19:04:02 Z2009-04-17T19:04:02Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#16bd61c3-95c1-4417-a696-e793d2fc2d91http://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#16bd61c3-95c1-4417-a696-e793d2fc2d91sayanch1http://social.microsoft.com/Profile/en-US/?user=sayanch1Cannot pass environment variables containing ";" via job submitThis issue should be fixed in SP1. However, you might try using the SetEnvironmentVariable method in the Scheduler API as that might work.Sat, 02 May 2009 00:28:40 Z2009-05-02T00:28:40Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#5623b2f9-dbde-4dd2-bad8-ab4d8edb8c4bhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#5623b2f9-dbde-4dd2-bad8-ab4d8edb8c4bDr.Darshanhttp://social.microsoft.com/Profile/en-US/?user=Dr.DarshanCannot pass environment variables containing ";" via job submitThank you, that was indeed helpful.Tue, 05 May 2009 18:24:08 Z2009-05-05T18:24:08Zhttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#f94008a6-274c-44f7-a702-88a1ea83055ahttp://social.microsoft.com/Forums/en-US/windowshpcsched/thread/a2c62ba3-1539-4d63-9728-dba792da6dc7#f94008a6-274c-44f7-a702-88a1ea83055aDr.Darshanhttp://social.microsoft.com/Profile/en-US/?user=Dr.DarshanCannot pass environment variables containing ";" via job submitThank you, I will wait for SP1 and use the previous workaround meanwhile. I would have preferred to use the Scheduler API, but cannot because I am submitting jobs from a Python application.Tue, 05 May 2009 18:28:34 Z2009-05-05T18:28:34Z