Open ndeebook opened 2 years ago
Looking at rqd\rqd\rqcore.py
, I see that FrameAttendantThread.runWindows
uses _createCommandFile
to save the command to a .bat
file and then subprocess.Popen
the .bat
file.
A direct call to the command would work while in a .bat
file some characters must be escaped (which is the case of %
).
Can't we get rid of the .bat file ? Otherwise characters escaping should be handled (this could help: https://www.robvanderwoude.com/escapechars.php & https://stackoverflow.com/questions/6828751/batch-character-escaping)
also, if an intermediate file is mandatory, why not consider a powershell script instead (which does not seem the need of escaping characters if we use quotes) ?
subprocess.Popen(['powershell', 'path/to/command.ps1'])
Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1.
(https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7.2)
Version: OpenCue 0.15.22
Hello,
So, here an example job log:
In the log summary (top) we can see that the command sent is not the same as the one actually run (below). The percent sign (%) is replaced by the current working directory.
The job was sent with Windows, using
outline.cuerun.launch(outline.Outline(...))
The RQD host is also on Windows, installed withsetup.py install
Everything else runs just fine.I tried adding and removing quotes around that command element but it did not have any effect.