[Gambas-user] R: My programm name of process

Fabien Bodard gambas.fr at ...626...
Fri Oct 5 16:31:09 CEST 2012


Symbolic links... but how benoit ??



2012/10/5 Ru Vuott <vuott at ...325...>:
> The name of "process" is here:
>
>   /proc/PID_number/comm
>
>
> The directory of program;
>
>   /proc/PID_number/cmdline
>
>
> bye
> vuottt
>
>
>
> --- Ven 5/10/12, abbat <abbat.81 at ...787...> ha scritto:
>
>> Da: abbat <abbat.81 at ...787...>
>> Oggetto: Re: [Gambas-user] R:   My programm name of process
>> A: gambas-user at lists.sourceforge.net
>> Data: Venerdì 5 ottobre 2012, 15:39
>>
>> Hi,
>>
>> I'm sure it's good way, but we need individual process name
>> for each .gambas
>> program not only to kill it.
>> I use two and more different .gambas programs at one time
>> and I need to see
>> them in process list.
>> For now my process list looks like this:
>>
>> Process list:
>>
>> pcmanfm
>> lxterminal
>> gbr3
>> gbr3
>> gbr3
>> gimp
>>
>> and other processes....
>>
>> So, I cant choose the process I want to kill without gambas
>> program (your
>> code).
>>
>> Is it possible to show own process name for any programm?
>>
>>
>>
>>
>>
>>
>> Vuott wrote:
>> >
>> > ...this is a possible way:
>> >
>> > ********************
>> > Public Sub Button1_Click()
>> >
>> >   Dim s1, s2, pid As String
>> >
>> >
>> >   s1 = InputBox("Insert the program name
>> (without its extension
>> > .gambas):")
>> >
>> >
>> >   For Each pid In Dir("/proc")
>> >
>> >     If Exist("/proc/" & pid
>> & "/cmdline") Then
>> >
>> >       s2 = File.Load("/proc/"
>> & pid & "/cmdline")
>> >
>> >       If s2 Like "*" & s1
>> & ".gambas*" Then
>> >         Shell "kill "
>> & pid
>> >         Exit
>> >       Endif
>> >
>> >     Endif
>> >
>> >   Next
>> >
>> > End
>> >
>> > *******************
>> >
>> > bye
>> > vuotttt
>> >
>> >
>> >
>> > --- Ven 5/10/12, abbat <abbat.81 at ...787...>
>> ha scritto:
>> >
>> >> Da: abbat <abbat.81 at ...787...>
>> >> Oggetto: [Gambas-user]  My programm name of
>> process
>> >> A: gambas-user at lists.sourceforge.net
>> >> Data: Venerdì 5 ottobre 2012, 08:18
>> >>
>> >> Hi,
>> >> Current process name of my program is "gbr3".
>> >> So, if I have two and more  running  program of
>> >> gambas I cant kill one
>> >> process.
>> >> "killall gbr3" kills all running gambas programs.
>> >> Is it possible to change a process name of gambas
>> program?
>> >>
>> >> Thank you.
>> >>
>> >> --
>> >> View this message in context:
>> >> http://old.nabble.com/My-programm-name-of-process-tp34517217p34517217.html
>> >> Sent from the gambas-user mailing list archive at
>> >> Nabble.com.
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Don't let slow site performance ruin your business.
>> Deploy
>> >> New Relic APM
>> >> Deploy New Relic app performance management and
>> know
>> >> exactly
>> >> what is happening inside your Ruby, Python, PHP,
>> Java, and
>> >> .NET app
>> >> Try New Relic at no cost today and get our sweet
>> Data Nerd
>> >> shirt too!
>> >> http://p.sf.net/sfu/newrelic-dev2dev
>> >> _______________________________________________
>> >> Gambas-user mailing list
>> >> Gambas-user at lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >>
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Don't let slow site performance ruin your business.
>> Deploy New Relic APM
>> > Deploy New Relic app performance management and know
>> exactly
>> > what is happening inside your Ruby, Python, PHP, Java,
>> and .NET app
>> > Try New Relic at no cost today and get our sweet Data
>> Nerd shirt too!
>> > http://p.sf.net/sfu/newrelic-dev2dev
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>> >
>>
>> --
>> View this message in context: http://old.nabble.com/My-programm-name-of-process-tp34517217p34518228.html
>> Sent from the gambas-user mailing list archive at
>> Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy
>> New Relic APM
>> Deploy New Relic app performance management and know
>> exactly
>> what is happening inside your Ruby, Python, PHP, Java, and
>> .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd
>> shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list