Here is a example of the code that behaves odd.
Code: Select all
fndver = RunProgram("dpkg", "-l discord | awk '/discord/{print $3}'", "", #PB_Program_Open | #PB_Program_Read | #PB_Program_Error | #PB_Program_Hide)
If fndver
While ProgramRunning(fndver) And (ElapsedMilliseconds() - StartTime < Timeout)
If AvailableProgramOutput(fndver)
Output$ + ReadProgramString(fndver)
EndIf
If AvailableProgramError(fndver)
Error$ + ReadProgramError(fndver)
EndIf
Delay(10)
Wend
If ProgramRunning(fndver)
KillProgram(fndver)
Output$ = "Error: Command timed out"
EndIf
CloseProgram(fndver)
EndIf
Debug "Error Output: " + Error$
$ dpkg -l discord | awk '/discord/{print $3}'
0.0.92
I know its because I'm overlooking something, but what that is it eludes me. Would someone please shed some light on this?
Just for reference the output I get is more like this.
Discord version: Desired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name Version Architecture Description+++-==============-============-============-=================================un awk <none> <none> (no description available)ii grep 3.7-1build1 amd64 GNU grep, egrep and fgrep
Yeah totally not the expected.