|
process.start("powershell", |
|
QStringList() << "-NoProfile" |
|
<< "-NonInteractive" |
|
<< "-Command" |
|
<< "Get-CimInstance Win32_Process | Select CommandLine"); |
In trying to use Pause Conditions / Programs Monitor on windows, I found that Sane Break failed to detect a matching program string (e.g. I configure Sane Break to look for StringIWantToMatch from the running application c:\files\program.exe -some-other-options StringIWantToMatch). When I rearranged things to be c:\files\program.exe StringIWantToMatch -some-other-options then Sane Break was able to detect it and pause appropriately.
It seems like it's some wacky windows behavior where powershell truncates the output based on its implicit console size.
sane-break/src/lib/windows/program-monitor.cpp
Lines 17 to 21 in 20a8099
In trying to use Pause Conditions / Programs Monitor on windows, I found that Sane Break failed to detect a matching program string (e.g. I configure Sane Break to look for
StringIWantToMatchfrom the running applicationc:\files\program.exe -some-other-options StringIWantToMatch). When I rearranged things to bec:\files\program.exe StringIWantToMatch -some-other-optionsthen Sane Break was able to detect it and pause appropriately.It seems like it's some wacky windows behavior where powershell truncates the output based on its implicit console size.