[Gambas-user] how to make threats

nando nando_f at ...951...
Tue Nov 12 12:00:38 CET 2013


There are many ways to accomplish this:
Some examples are:

1. In a terminal, use the 'top' command. Notice the PID.  Press k to kill it.
2. again, in a terminal, you can use commands such as ps -aux, kill, pkill
   achieve the same thing.
3. I have used this (simple) method on many occasions:
   the background program occasionally looks for the existance of a
   particular directory.  I use a timer for this.
   When the directory is found existing, it is deleted and it terminates itself.
   I have used the directory idea in the opposite way too: the background program
   creates a file or folder.  Anything can delete(rm or rmdir) it.
   Occasionally, the background program doesn't find it exists and terminates itself.
-F


---------- Original Message -----------
From: Rolf-Werner Eilert <eilert-sprachen at ...221...>
To: gambas-user at lists.sourceforge.net
Sent: Tue, 12 Nov 2013 09:52:46 +0100
Subject: Re: [Gambas-user] how to make threats

> And how would you stop such a thread when you finish the main program (GUI)?
> 
> Am 11.11.2013 23:31, schrieb nando:
> > one way is to make use rc.local file
> > and place the name of the executable there
> > with a & at the end to make it run in the background.
> >
> >
> > ---------- Original Message -----------
> > From: PICCORO McKAY Lenz <mckaygerhard at ...626...>
> > To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> > Sent: Mon, 11 Nov 2013 14:01:28 -0430
> > Subject: [Gambas-user] how to make threats
> >
> >> mi previous question no have response , so i reformuled:
> >>
> >> how to i can make threatds? i mean i wish to make daemons in gambas...
> >>
> >> if i started a gui proyect its easy, but if i started a console
> >> project do not know how to made that!  wiki its vage in this and
> >> there's no examples in source
> >>
> >> --
> >> Lenz McKAY Gerardo (PICCORO)
> >> http://qgqlochekone.blogspot.com
> >>
> >> ------------------------------------------------------------------------------
> >> November Webinars for C, C++, Fortran Developers
> >> Accelerate application performance with scalable programming models. Explore
> >> techniques for threading, error checking, porting, and tuning. Get the most
> >> from the latest Intel processors and coprocessors. See abstracts and register
> >> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> > ------- End of Original Message -------
> >
> >
> > ------------------------------------------------------------------------------
> > November Webinars for C, C++, Fortran Developers
> > Accelerate application performance with scalable programming models. Explore
> > techniques for threading, error checking, porting, and tuning. Get the most
> > from the latest Intel processors and coprocessors. See abstracts and register
> > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most 
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list