Hello,
yes, my friend, so it works !
Exec ["killall", "prgname"]
Very good !
bye
Paolo
>
> if i remember correctly EXEC is an interface to the exec
> family of syscalls. so writing EXEC
> ["killall prgname"] will result in the program "killall
> prgname" to be executed. i suggest that none
>
quot;killall program_name"
>
> it's OK
> .
>
>
> --- Gio 1/3/12, Emil Lenngren ha scritto:
>
> > Da: Emil Lenngren
> > Oggetto: Re: [Gambas-user] R: Process in TableVew and to Kill a Process -
> > RECTIUS
> > A: "mailing list for ga
Emil Lenngren
> Oggetto: Re: [Gambas-user] R: Process in TableVew and to Kill a Process -
> RECTIUS
> A: "mailing list for gambas users"
> Data: Giovedì 1 marzo 2012, 00:54
> Try this: Exec("killall
> program_name")
>
> 2012/3/1 abbat
>
> >
Try this: Exec("killall program_name")
2012/3/1 abbat
>
> It works only if I use Button1 (If we execute an app ourselves).
> But how to kill process if we know only Name?
> Thanks
>
>
> Vuott wrote:
> >
> > ' Gambas class file
> >
> > Private hpro As Process
> >
> >
> > Public Sub Button1_Click(
It works only if I use Button1 (If we execute an app ourselves).
But how to kill process if we know only Name?
Thanks
Vuott wrote:
>
> ' Gambas class file
>
> Private hpro As Process
>
>
> Public Sub Button1_Click()
>
> ' An application start, i.e. “ Gedit “
> hpro = Exec ["gedit"] As
' Gambas class file
Private hpro As Process
Public Sub Button1_Click()
' An application start, i.e. “ Gedit “
hpro = Exec ["gedit"] As "hpro"
End
Public Sub button2_Click()
' it closes application process
hpro.kill
End
' this event is raised, when process is closed:
Publ
' Gambas class file
Private hpro As Process
Public Sub Button1_Click()
' An application start, i.e. “ Gedit “
hpro = Exec ["gedit"]
End
Public Sub button2_Click()
' it closes application process
hpro.kill
End
Public Sub hpro_Kill() ' this event is raised, when process is closed