Ru ... It is not the answer to our query... It's just workarounds
Le 6 oct. 2012 00:18, "Ru Vuott" a écrit :
> Another possibility with "xprop" and DesktopWindows class.
> It need to activate gb.desktop.
>
> ***
>
> Private i As Integer
>
>
> Public Sub Form_Open()
>
> Dim
By using "xprop", you can choose the window of program via mouse !
> Another possibility with "xprop" and
> DesktopWindows class.
> It need to activate gb.desktop.
>
> ***
>
> Private i As Integer
>
>
> Public Sub Form_Open()
>
> Dim pr As Process
> Dim ss, x As
Latest revision doesn't compile.
But in case you are using another revision (5219 or older), then try to
recompile gambas3.gambas.
Jussi
On Sat, Oct 6, 2012 at 12:04 AM, Willy Raets wrote:
> Ubuntu 12.04 LTS - Unity Desktop
> Installation: Download from Gambas website Gambas 3.3.2
> Dependenci
Another possibility with "xprop" and DesktopWindows class.
It need to activate gb.desktop.
***
Private i As Integer
Public Sub Form_Open()
Dim pr As Process
Dim ss, x As New String[]
Dim s, y As String
Dim j As Byte
pr = Shell "xprop | grep -i window" For
Ubuntu 12.04 LTS - Unity Desktop
Installation: Download from Gambas website Gambas 3.3.2
Dependencies installed:
sudo apt-get install build-essential autoconf libbz2-dev libfbclient2
libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev
libglib2.0-dev libgtk2.0-dev libldap2-dev l
Comment #10 on issue 333 by gambas...@gmail.com: In the report the spacing
changed in the latest version
http://code.google.com/p/gambas/issues/detail?id=333
I will change the default values to 0 but it will not take effect since the
next releases at least it will work for the svn
-
Comment #9 on issue 333 by flynetin...@gmail.com: In the report the spacing
changed in the latest version
http://code.google.com/p/gambas/issues/detail?id=333
not as comfortable because I have to tweak every reports (field by field)
but at least it works.
Thanks for the help.
--
How about something like this:
Dim sOutput As String
Exec ["pgrep", "-f", "NameOfTheProgram.gambas"] Wait To sOutput
If Split(Trim$(sOutput), gb.NewLine).Count = 1 Then
Exec ["kill", sOutput]
Else
'Multiple instances found, do something else...
Endif
Jussi
On Fri, Oct 5, 2012 at 7:00 PM, Ru
Comment #8 on issue 333 by gambas...@gmail.com: In the report the spacing
changed in the latest version
http://code.google.com/p/gambas/issues/detail?id=333
Well i have found something ... as i set default value (W/H) now for
objects at 1 cm the ide set up all the object that have 0 to 1 cm .
> >
> No, not really exceptional and in fact not really rare.
>
> There is no reason to think that one of your gambas projects
> may have a
> single instance running unless that is a particular
> RULE.
It seems to me the problem was: e.g. I have 3 running gambas program:
a.gambas
b.gambas
c.ga
On Fri, 2012-10-05 at 16:24 +0100, Ru Vuott wrote:
> > >
> > >
> > Even that is risky, because if you have more than one
> > instance of the
> > same executable running .. you will send a SIGTERM to all of
> > them.
> >
>
> Ok... but this is an exceptional and rare eventuality !!! no ?
>
No,
> >
> >
> Even that is risky, because if you have more than one
> instance of the
> same executable running .. you will send a SIGTERM to all of
> them.
>
Ok... but this is an exceptional and rare eventuality !!! no ?
---
On Fri, 2012-10-05 at 11:20 +0100, Ru 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
On Fri, 2012-10-05 at 14:56 +0100, Ru Vuott wrote:
> The name of "process" is here:
>
> /proc/PID_number/comm
>
>
> The directory of program;
>
> /proc/PID_number/cmdline
>
>
> bye
> vuottt
>
>
or just
ps x| grep gbr
but I'm not sure that I really understand the problem here
<> m
Symbolic links... but how benoit ??
2012/10/5 Ru Vuott :
> 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 ha scritto:
>
>> Da: abbat
>> Oggetto: Re: [Gambas-user] R: M
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 ha scritto:
> Da: abbat
> Oggetto: Re: [Gambas-user] R: My programm name of process
> A: gambas-user@lists.sourceforge.net
> Data: Venerdì 5
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
gbr
Le 05/10/2012 08:18, abbat a écrit :
>
> 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
This is an old query... Is there a way to replace the runtime process name
by the program name
Le 5 oct. 2012 08:19, "abbat" a écrit :
>
> 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
...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(
20 matches
Mail list logo