[Gambas-user] Feature Request - Package Management
Hi all! I dont know, if its possible, but I like to have a installer like: gambas-3.1.2-install.bin or gambas-3.1.2-install.sh for every new release (stable or unstable), for all linuxes. Advantages: 1 Faster updating. 2 Faster bug fixing (as every one uses it). 3 More documentation to configure and use. 4 Choice to use any version any-time. 5 Be independent of compiling and dependency seeking. 6 Single repos for all linux-variants. 7 Easy downgrading, if required. 8 Easy testing of a unstable release. 9 Installing as a core-package rather then a dependent. 10 More helps available. Just as sun offers jdk and jre releases fro linuxes. Installer and un-installer packages be also available in the same format. Please Agree!:-) Thanks in advance. Currently I am on hardy, and I dont find it comfortable to compile. Best Regards to all.. -- View this message in context: http://www.nabble.com/Feature-Request---Package-Management-tp23610862p23610862.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] C Code character manipulation - alternatives
Hi all! I am still learning gambas. I need a little help in character manipulation. I C there are functions: getchar putchar fgetc isdigit Can these be implemented now in gambas. I failed to use the first two using chr and chr$. Thanks in advance for tips/ solution. -- View this message in context: http://www.nabble.com/C-Code-character-manipulation---alternatives-tp23611042p23611042.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C Code character manipulation - alternatives
Hi, getchar/putchar (as the name is saying) are for read/write single char to stdin/out chr(i) eg. chr$(i) will return char from ASCII code - sth. like itoa or (char)i in C, this has nothing to do with both above... You will need one of the input functions in gambas to get similar functionality in your gambas app. Some info on what you are trying to reach will be helpfull... kind regards Emil -Ursprungliche Nachricht- Von: KhurramM [mailto:kms...@gmail.com] Gesendet: Dienstag, 19. Mai 2009 09:24 An: gambas-user@lists.sourceforge.net Betreff: [Gambas-user] C Code character manipulation - alternatives Hi all! I am still learning gambas. I need a little help in character manipulation. I C there are functions: getchar putchar fgetc isdigit Can these be implemented now in gambas. I failed to use the first two using chr and chr$. Thanks in advance for tips/ solution. -- View this message in context: http://www.nabble.com/C-Code-character-manipulation---alternatives-tp2361104 2p23611042.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request - Package Management
Sun's JDK binaries also includes the dependencies needed, and we'd need a package for each architecture, but I'm all for the idea. I'm assuming that it would install it somewhere like /opt, then the dependencies would be in a separate prefix there too. The only problem then is, say because your on Hardy, you'd possibly have two different GTK versions and it may get hard to maintain efficiently, unless the install script detected the distro, and automatically satisfied the dependencies, but then you might as well make a load of .debs. Just my thoughts 2009/5/19 KhurramM kms...@gmail.com Hi all! I dont know, if its possible, but I like to have a installer like: gambas-3.1.2-install.bin or gambas-3.1.2-install.sh for every new release (stable or unstable), for all linuxes. Advantages: 1 Faster updating. 2 Faster bug fixing (as every one uses it). 3 More documentation to configure and use. 4 Choice to use any version any-time. 5 Be independent of compiling and dependency seeking. 6 Single repos for all linux-variants. 7 Easy downgrading, if required. 8 Easy testing of a unstable release. 9 Installing as a core-package rather then a dependent. 10 More helps available. Just as sun offers jdk and jre releases fro linuxes. Installer and un-installer packages be also available in the same format. Please Agree!:-) Thanks in advance. Currently I am on hardy, and I dont find it comfortable to compile. Best Regards to all.. -- View this message in context: http://www.nabble.com/Feature-Request---Package-Management-tp23610862p23610862.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- joshua higgins -- -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request - Package Management
On Tuesday 19 May 2009 03:07, KhurramM wrote: gambas-3.1.2-install.bin or gambas-3.1.2-install.sh for every new release (stable or unstable), for all linuxes. 2 Faster bug fixing (as every one uses it). I certainly wouldn't. If I can't install something using apt-get, I build my own package rather than using some binary installer. 5 Be independent of compiling and dependency seeking. You realize that for Gambas to include all its dependencies in the installer - Gtk, KDE, mysql, all the other libraries, statically linked so they'll run on any version of Linux - would make the Gambas installer fill a CD and maybe more, right? 8 Easy testing of a unstable release. When it comes to unstable development versions of programs, I think putting the make barrier in place is useful because it prevents less technical users from testing software that isn't safe for them to use yet. If you have trouble compiling things, you're also going to have trouble running a debugger to post a stack trace after a crash. 3 More documentation to configure and use. 10 More helps available. How will putting Gambas into a monolithic installer create more documentation and help? Just as sun offers jdk and jre releases fro linuxes. Sun offers their jdk and jre installers because they used to be proprietary software and most distributions wouldn't package them. That has changed, at least partly, but their culture is already in place. Also, Java has very few dependencies, because it reinvents the wheel for the most part rather than using existing toolkits and libraries the way Gambas does. Currently I am on hardy, and I dont find it comfortable to compile. There is an installer system called Klik that would provide what you're describing, a single file that includes all dependencies, and years ago someone packaged Gambas 1.x for Klik. But I don't know if anyone updates it any more and even so, if you're running a KDE 3 system and try to install a version of Gambas that includes an entire copy of KDE 4, for example, I think it's not going to work too well. It's a moot point, since even when they kept Klik up to date, they only included stable versions of programs, not development ones. Rob -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] let's nominate Gambas
Benoît Minisini wrote: Stefano Palmeri a écrit : It's time again for SourgeForge Awards. This year you can nominate Gambas even if you don't have a SourceForge account. Here's the nominations page: http://sourceforge.net/community/cca09/nominate/ I nominated Gambas for Best Tool or Utility for Developers. Come on, go on the page and nominate Gambas. Bye, Stefano It's done :-) . I nominated Gambas with a little comment from me. I hope all Gambas communities will go to nominate our favourite programming language. Hmm, Benoit you won't forget to go nominate your project ? :-) François. I did it first. :-) Put this link on the frontpage of your websites! a href=http://sourceforge.net/community/cca09/nominate/?project_name=Gambasproject_url=http://gambas.sourceforge.net/;img src=http://sourceforge.net/images/cca/cca_nominate.png; border=0//a Regards, Ron_2nd. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] shared library in Gambas
hello, I have two shared linraries (ftd2xx, lumax). the first shared libray (ftd2xx) work well. But when I call a function from second shared library (lumax) I get an error-message: program returns the value 127 When I use the shared library lumax in C it works well, but in C I must compile with both libraries. While lumax calls function from ftd2xx Can someone help me kind regards and thank you -- View this message in context: http://www.nabble.com/shared-library-in-Gambas-tp23620662p23620662.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XmlRpc
Jesus Guardon schreef: Hi all Anyone has been using XmlRpc component of Gambas? No documentation already done for it, and I need to communicate with another app via this protocol. At a first glance, I'm unable to understand how to use, any help please? Using Gambas2 - 2.12.0 on Ubuntu 8.10 Regards Jesus Hi, Yes I'm using the server part, I talk to it with PHP 5 xmlrpc. Look here for the server part: http://www.domotiga.nl/projects/domotiga/browser/trunk/DomotiGa/CXMLRPC.class This is a _very raw_ client example: --- ' Gambas module file PUBLIC SUB Main() DIM RpcF AS RpcFunction DIM myStruc AS RpcStruct DIM client AS RpcClient DIM hVar AS NEW Variant[] DIM ret AS Variant DIM a AS Integer DIM name AS String DIM dType AS Integer a = 0 RpcF = NEW RpcFunction(sample.sumAndDifference, [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xStruct) client = NEW RpcClient(RpcF) client.URL = http://xmlrpc-c.sourceforge.net/api/sample.php; hVar.Add(5) hVar.Add(3) myStruc = client.Call(hVar) DO WHILE a myStruc.Count name = myStruc.Key(a) dType = myStruc.dataType(a) ret = myStruc.Value(a) DEBUG Name = name DEBUG Type = dType DEBUG Value = ret INC a LOOP END It returns: MMain.Main.28: Name = sum MMain.Main.29: Type = 0 MMain.Main.30: Value = 8 MMain.Main.28: Name = difference MMain.Main.29: Type = 0 MMain.Main.30: Value = 2 Regards, Ron_2nd. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] kdesu vs gksu
On 5/18/09, Jesus Guardon jguar...@telefonica.net wrote: Yes, I know it may be a little off-topic, but the question is: I need to launch a process with root privileges from SHELL command in Gambas. Users of my application can have Gnome or KDE, so I don't know which command I must issue to get it to work. Is there a way to choose between either gksu o kdesu commands at runtime? I've figured it out if it could be something like: SHELL gksu | kdesu -u root 'some_command' or SHELL gksu -u root 'some_command' | kdesu -u root 'some_command' Here's what I do in the vl-hot-config utility: *** ' Gambas module file PUBLIC SUB Main() DIM MyProc AS Process DIM Ret AS String IF System.User.Id 0 THEN EXEC [which, kdesu] TO Ret IF InStr(Ret, kdesu) THEN EXEC [kdesu, Application.Path / vl-hot-config.gambas] ELSE EXEC [which, gksu] TO Ret IF InStr(Ret, gksu) THEN EXEC [gksu, Application.Path / vl-hot-config.gambas] ELSE PRINT No kdesu or gksu available (vl-hot-config needs to run as root)... ENDIF ENDIF QUIT ENDIF FMain.Show END *** Regards, Joe1962 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] kdesu vs gksu
Thanks, Jose This is a good approach, too. But also not perfect, ;-) ... A friend of mine tells that in his Debian testing (KDE), no kdesu is available. Instead it have 'kdesudo', so in this case your code (and David's too) might fail. We must check for this, too. Another issue is that I want to start, is a daemon process and a bit later, another process that connects to this daemon. So, to clarify: 1st) I start a daemon with shell gksu -u root 'some process' 2nd) Meanwhile (we type the passwd), the other process has started, but no host to connect to, because this process has started before the 1st one, which is the host. So my client process fails misserably. I'm not be able to use WAIT in the first shell statement, because a daemon never stops running, so I need to insert a 'WAIT n' in between, not very elegant... Sorry for the brick Best regards Jesus Jose J. Rodriguez escribió: On 5/18/09, Jesus Guardon jguar...@telefonica.net wrote: Yes, I know it may be a little off-topic, but the question is: I need to launch a process with root privileges from SHELL command in Gambas. Users of my application can have Gnome or KDE, so I don't know which command I must issue to get it to work. Is there a way to choose between either gksu o kdesu commands at runtime? I've figured it out if it could be something like: SHELL gksu | kdesu -u root 'some_command' or SHELL gksu -u root 'some_command' | kdesu -u root 'some_command' Here's what I do in the vl-hot-config utility: *** ' Gambas module file PUBLIC SUB Main() DIM MyProc AS Process DIM Ret AS String IF System.User.Id 0 THEN EXEC [which, kdesu] TO Ret IF InStr(Ret, kdesu) THEN EXEC [kdesu, Application.Path / vl-hot-config.gambas] ELSE EXEC [which, gksu] TO Ret IF InStr(Ret, gksu) THEN EXEC [gksu, Application.Path / vl-hot-config.gambas] ELSE PRINT No kdesu or gksu available (vl-hot-config needs to run as root)... ENDIF ENDIF QUIT ENDIF FMain.Show END *** Regards, Joe1962 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XmlRpc
Hi Ron and all Many thanks for your example, I will try to understand and adapt it to my needs. Until then, I'll let you know if it works. Kind regards Jesus Ron escribió: Jesus Guardon schreef: Hi all Anyone has been using XmlRpc component of Gambas? No documentation already done for it, and I need to communicate with another app via this protocol. At a first glance, I'm unable to understand how to use, any help please? Using Gambas2 - 2.12.0 on Ubuntu 8.10 Regards Jesus Hi, Yes I'm using the server part, I talk to it with PHP 5 xmlrpc. Look here for the server part: http://www.domotiga.nl/projects/domotiga/browser/trunk/DomotiGa/CXMLRPC.class This is a _very raw_ client example: --- ' Gambas module file PUBLIC SUB Main() Ok, I have spend some time to get the errors out of the xmlrpc component with the help of Benoit before I could use it myself. So far it works ok for my needs, but you can come across other problems not solved yet. Using an online xmlrpc debugger was very useful to me. Regards, Ron. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C Code character manipulation - alternatives
String Functions in Gambas see http://gambas.sourceforge.net/ for detailed info about them. * *Asc* Returns the ASCII code of a character in a string. * *Chr$* Returns a character from its ASCII code. * *Comp* Compares two strings. * *InStr* Searches a string into another string. * *LCase$* Converts a string to lowercase. * *Left$* Returns the first characters of a string. * *Len* Returns the length of a string. * *LTrim$* Strips white spaces from the left of a string. * *Mid$* Returns a part of a string. * *Replace*$ Replaces in a string a substring by another one. * *Right*$ Returns the last characters of a string. * *RInStr* Searches a string into another string from its right. * *RTrim*$ Strips white spaces from the right of a string. * *Scan* Splits a string against a regular expression pattern. * *Space*$ Returns a string containing only space. * *Split* Splits a string into substrings. * *String*$ Returns the same string concatenated many times. * *Subst*$ Substitutes strings in a pattern. * *Trim*$ Strips white spaces from a string. * *UCase*$ Converts a string to uppercase. On Tue, May 19, 2009 at 1:23 AM, KhurramM kms...@gmail.com wrote: Hi all! I am still learning gambas. I need a little help in character manipulation. I C there are functions: getchar putchar fgetc isdigit Can these be implemented now in gambas. I failed to use the first two using chr and chr$. Thanks in advance for tips/ solution. -- View this message in context: http://www.nabble.com/C-Code-character-manipulation---alternatives-tp23611042p23611042.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request - Package Management
The idea itself sound nice, a unique way to install your favorite application. But, the concept is a contradiction to what Linux: is almost 300 different distros most of them active. 1000s of diferent projects, manuals, tutorials, books, etc. Some people think that is one of the weakest links of Linux, that all we are divided in several distros and several projects. But I think is what make Linux so attractive, the freedom to use whatever desktop, software, distro, etc you want. Who cares if Linux will never beat Windows? Me and my family use Linux and we love it, and is what really matters. On my opinion, of the two major distros (Ubuntu OpenSuse) the one that makes your life easier is Ubuntu, some time ago I just give up to have the latest and greatest version of Gambas and other projects, I try to be patient and wait to the ubuntu package. *BTW, when is going to be ready the newest Gambas packages for Ubuntu??? * :-) have a nice day. On Tue, May 19, 2009 at 8:24 AM, Rob sourceforge-raind...@kudla.org wrote: On Tuesday 19 May 2009 03:07, KhurramM wrote: gambas-3.1.2-install.bin or gambas-3.1.2-install.sh for every new release (stable or unstable), for all linuxes. 2 Faster bug fixing (as every one uses it). I certainly wouldn't. If I can't install something using apt-get, I build my own package rather than using some binary installer. 5 Be independent of compiling and dependency seeking. You realize that for Gambas to include all its dependencies in the installer - Gtk, KDE, mysql, all the other libraries, statically linked so they'll run on any version of Linux - would make the Gambas installer fill a CD and maybe more, right? 8 Easy testing of a unstable release. When it comes to unstable development versions of programs, I think putting the make barrier in place is useful because it prevents less technical users from testing software that isn't safe for them to use yet. If you have trouble compiling things, you're also going to have trouble running a debugger to post a stack trace after a crash. 3 More documentation to configure and use. 10 More helps available. How will putting Gambas into a monolithic installer create more documentation and help? Just as sun offers jdk and jre releases fro linuxes. Sun offers their jdk and jre installers because they used to be proprietary software and most distributions wouldn't package them. That has changed, at least partly, but their culture is already in place. Also, Java has very few dependencies, because it reinvents the wheel for the most part rather than using existing toolkits and libraries the way Gambas does. Currently I am on hardy, and I dont find it comfortable to compile. There is an installer system called Klik that would provide what you're describing, a single file that includes all dependencies, and years ago someone packaged Gambas 1.x for Klik. But I don't know if anyone updates it any more and even so, if you're running a KDE 3 system and try to install a version of Gambas that includes an entire copy of KDE 4, for example, I think it's not going to work too well. It's a moot point, since even when they kept Klik up to date, they only included stable versions of programs, not development ones. Rob -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] (no subject)
-- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] ODBC
-- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] kdesu vs gksu
For me I would use neither, it would rely on those packages being available. In Fedora it uses its own graphical system - sorry can tell you the name its linked directly to the authentication system. As such those packages are nowhere to be seen. Instead let your package do the checking using shell. There some examples around. If you need I can give you one that you can add in to the sample given by Jose J. Rodriguez. Steven. On Tue, 2009-05-19 at 22:00 +0200, Jesus Guardon wrote: Thanks, Jose This is a good approach, too. But also not perfect, ;-) ... A friend of mine tells that in his Debian testing (KDE), no kdesu is available. Instead it have 'kdesudo', so in this case your code (and David's too) might fail. We must check for this, too. Another issue is that I want to start, is a daemon process and a bit later, another process that connects to this daemon. So, to clarify: 1st) I start a daemon with shell gksu -u root 'some process' 2nd) Meanwhile (we type the passwd), the other process has started, but no host to connect to, because this process has started before the 1st one, which is the host. So my client process fails misserably. I'm not be able to use WAIT in the first shell statement, because a daemon never stops running, so I need to insert a 'WAIT n' in between, not very elegant... Sorry for the brick Best regards Jesus Jose J. Rodriguez escribió: On 5/18/09, Jesus Guardon jguar...@telefonica.net wrote: Yes, I know it may be a little off-topic, but the question is: I need to launch a process with root privileges from SHELL command in Gambas. Users of my application can have Gnome or KDE, so I don't know which command I must issue to get it to work. Is there a way to choose between either gksu o kdesu commands at runtime? I've figured it out if it could be something like: SHELL gksu | kdesu -u root 'some_command' or SHELL gksu -u root 'some_command' | kdesu -u root 'some_command' Here's what I do in the vl-hot-config utility: *** ' Gambas module file PUBLIC SUB Main() DIM MyProc AS Process DIM Ret AS String IF System.User.Id 0 THEN EXEC [which, kdesu] TO Ret IF InStr(Ret, kdesu) THEN EXEC [kdesu, Application.Path / vl-hot-config.gambas] ELSE EXEC [which, gksu] TO Ret IF InStr(Ret, gksu) THEN EXEC [gksu, Application.Path / vl-hot-config.gambas] ELSE PRINT No kdesu or gksu available (vl-hot-config needs to run as root)... ENDIF ENDIF QUIT ENDIF FMain.Show END *** Regards, Joe1962 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature Request - Package Management
Hello All! TO joshiggins ...The only problem then is, say because your on Hardy, you'd possibly have two different GTK versions... Intelligent Installer, it installs only what is not present on the system. TO Rob Kudla ...I build my own package rather than using some binary installer. ... It is what you prefer, not me. ... would make the Gambas installer fill a CD ... Does JDK do that? Do people complain? 8 Easy testing of a unstable release. What if I still wanna try? :working: ... How will putting Gambas into a monolithic installer create more documentation and help?... Any user on Any Linux can access yours and mine help and documentation. Linux-Platform independent. Also same configuration settings. ...There is an installer system called Klik that would provide what you're describing... . Klik failed to work on 50% applications, on my testing it. :-((:-(( TO Sergio A. Hernandez .. I try to be patient and wait to the ubuntu package. ... I am not patient on waiting for ubuntu to package for me. I am concerned to install and use the latest. :-( Thanks all, and I hope my request is accredited by the Gambas Developer Team. :-) -- View this message in context: http://www.nabble.com/Feature-Request---Package-Management-tp23610862p23629262.html Sent from the gambas-user mailing list archive at Nabble.com. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user