QTGuard QCkill problem under Linux with WineSometimes QTGuard does not manage to kill QChartist properly when it freezes under Linux
The solution is to use the pkill command.
Here are the modifications that can be made in QTGuard.bas:
' line 21
$include "includes\like.inc"
$Include "includes\ShellRedir.Inc"
?
declare sub ShellRedirCallBack (Text As String)
?
Sub ShellRedirCallBack (Text As String)
'Print Text
End Sub
?
DefStr platform = ShellRedir ("c:\qchartist\getos.exe")
' line 655
if like(platform,"*Wine*")=0 then ? ? ? ? ? ? ? ?
RUN CHR$(34) + homepath + "\QCKill.exe" + CHR$(34)
? ? ? ? ? ? ? ?RUN CHR$(34) + homepath + "\sendmailKill.exe" + CHR$(34)
end if
?
if like(platform,"*Wine*")=1 then
defint pid
pid=shell ("/bin/sh -c "+chr$(34)+"pkill QChartist"+chr$(34),0)
'pid=shell ("/bin/sh -c "+chr$(34)+"pkill sendmail"+chr$(34),0) ' commented because quite risky
end if
You can download the modified QTGuard.bas with the attached file.
Enjoy and happy trading