Symbolic links... but how benoit ??


2012/10/5 Ru Vuott <[email protected]>:
> 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 <[email protected]> ha scritto:
>
>> Da: abbat <[email protected]>
>> Oggetto: Re: [Gambas-user] R:   My programm name of process
>> A: [email protected]
>> 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 <[email protected]>
>> ha scritto:
>> >
>> >> Da: abbat <[email protected]>
>> >> Oggetto: [Gambas-user]  My programm name of
>> process
>> >> A: [email protected]
>> >> 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
>> >> [email protected]
>> >> 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
>> > [email protected]
>> > 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to