So I have a fixlet that is running a python script in both Linux and Windows and the linux piece of the fixlet runs like a dream but the Windows side while it shows Completed doesn’t produce the zip file at the end. I’m not sure what I am doing wrong as there isn’t any erroring or issues that I can easily find. I left out the Linux pieces as that appears to be working correctly and only left the Windows bits below. If anything looks off on the Fixlet side I would appreciate the assistance.
elseif {windows of operating system}
// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}
//
//Moving to the Monitoring_Tool table, removing any remnants of Monitor.py, json, and zip and then running the jar file
//
delete RemoveOldFiles.bat
appendfile cd C:\beanstore-client\dg\util\Monitoring_Tool
appendfile rm Monitor.py
appendfile rm *.json
appendfile rm *.zip
delete RemoveOldFiles.bat
copy __appendfile RemoveOldFiles.bat
runhidden RemoveOldFiles.bat
delete __createfile
// Running jar file through powershell
createfile until END_OF_FILE
Start-Process -FilePath java -WorkingDirectory C:\beanstore-client\dg\util\Monitoring_Tool -ArgumentList '-cp .;mariadb-java-client-1.7.3.jar ProductSkuTest'
END_OF_FILE
delete powershell.ps1
move __createfile powershell.ps1
waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File powershell.ps1
//
// Python program starts after the following line
//
createfile until _EOF
//Python program ends before the previous line
//Create a file with the Python program on the local filesystem
//
copy __createfile C:\beanstore-client\dg\util\Monitoring_Tool\Monitor.py
//Shell to Action Script Conversion Utility
delete __appendfile
delete RunMonitor.bat
appendfile cd C:\beanstore-client\dg\util\Monitoring_Tool
appendfile Monitor.py
copy __appendfile RunMonitor.bat
waithidden RunMonitor.bat
delete RunMonitor.bat
delete __appendfile
delete RemoveOldFiles.bat
appendfile cd C:\beanstore-client\dg\util\Monitoring_Tool
appendfile rm Monitor.py
appendfile rm items.txt
appendfile rm *.json
copy __appendfile RemoveOldFiles.bat
waithidden RemoveOldFiles.bat
delete RemoveOldFiles.bat
delete __appendfile
delete __createfile