[AOLSERVER] exec fails with child process lost
Hi! When I'm executing the statement set str [exec geoiplookup www.aolserver.com] from an AOLSERVER tcl file I get the following error: --- US error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?) --- Geoiplookup is a tool that tries to guess where an IP is located. Notice that the country US is returned correctly. Unfortunately, when I catch the error $str isn't filled. The same line works fine without error in tclsh. Does anybody know how to circumvent this error? wiwo -- Digital Concepts Ideen-Konzepte-Lösungen [EMAIL PROTECTED] www.digital-concepts.com Mobil: +43 699 / 20 88 13 51 Büro: +43 732 / 77 27 27 I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] exec fails with 'child process lost'
Not sure why this is happening, but it seems a bit much to fork a whole new process for this. :) Let me plug something I was working on but have not really made public yet: http://opentarget.scheffers.net/ Pure Tcl implementation or just put the database into your RDBMS. Bas. Wolfgang Winkler said: Hi! When I'm executing the statement set str [exec geoiplookup www.aolserver.com] from an AOLSERVER tcl file I get the following error: --- US error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?) --- Geoiplookup is a tool that tries to guess where an IP is located. Notice that the country US is returned correctly. Unfortunately, when I catch the error $str isn't filled. The same line works fine without error in tclsh. Does anybody know how to circumvent this error? wiwo -- Digital Concepts Ideen-Konzepte-Lösungen [EMAIL PROTECTED] www.digital-concepts.com Mobil: +43 699 / 20 88 13 51 Büro: +43 732 / 77 27 27 I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] Does Tcl's rename command work in 4.0?
On Thursday 13 March 2003 22:21, you wrote: Does Tcl's rename command work in AOLserver 4.0? With 3.3+AD13, if I add rename cmd cmd_old to a file in modules/tcl, it seems to work. But the same code doesn't appear to be working on 4.0 beta 3. Any ideas? Thanks! It has to do with the way Tcl interp is initialized. In pre-4 times, blueprint of the interpreter was obtained in a different way. This included low-level copy of all Tcl_CmdInfo structures from the startup interp to the connection interp. Obviously, if you renamed the command, you only changed its name but the cmd structure remained and it was copied to the new interp. Well, I was not very fond of this solution... The 4.x series do not fiddle with the cmd structures on the Tcl level. Instead, 4.x tries its best to replicate C-level commands by re-loading modules (i.e. calling their registered cmd traces) during the interp creation. This, of course, defeats any renamed commands but is *way* better in terms of supporting arbitrary Tcl extensions. You may now obviously ask: how do we achieve the functionality with the 4.x? At the moment, I can only think of: append cmd [ns_ictl get] { rename cmd cmd_old } ns_ictl save $cmd This will append your rename commands to the blueprint script and this script will be used to initialize all new interps. You might want to get yourself familiar with the ns_ictl command. You may find this cmd very interesting and valuable. HTH, Zoran I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
[AOLSERVER] Ns_GetVersion addition to 4.x series
Hi ! As I said on the last chat, this is my proposal for adding compile/runtime version info to AOLserver. Since changes are really trivial. I'd like to put them in the 4.0 version, if there are no objections. Proposed changes are modelled 1:1 to the already existing Tcl versioning info covered with the Tcl_GetVersion function and set of defines in tcl.h. Since this is 1:1 copy :-), I'd save myself too much explanations. Summary: New API function: void Ns_GetVersion(int *major, int *minor, int *patch, int *type); If you look at the man Tcl_GetVersion, all this will apply to the above as well. Well, the stubs-related info you can ignore for the moment. Stubs will be covered with some later improvement suggestions (pending). I'm still not sure where to place this function, i.e. in which sourcefile... In ns.h I'd put the following: #define NS_MAJOR_VERSION 4 /* The AOLserver major release number */ #define NS_MINOR_VERSION 0 /* The AOLserver minor release number */ #define NS_RELEASE_SERIAL 0 /* The AOLserver patch release number */ #define NS_ALPHA_RELEASE 0 /* The alpha release type */ #define NS_BETA_RELEASE 1 /* The beta release tyoe */ #define NS_FINAL_RELEASE 2 /* The production release type */ #define NS_RELEASE_LEVEL NS_BETA_RELEASE So in your module makefiles, you might use: #if defined(NS_MAJOR_VERSION) (NS_MAJOR_VERSION = 4) /* ... */ #endif to conditionaly compile module for 4.x series server. Also, during runtime, you can use: int major = 0; Ns_GetVersion(major, NULL, NULL, NULL); if (major = 4) { /* ... */ } If there are any objections, suggestions or other interesting ideas, please do not hesitate to give feedback. Cheers, Zoran I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] exec fails with 'child process lost'
Hi Bas! I've thrown the file in my tcl directory, loaded the database on startup and it works out of the box. Thanks a lot! How do you compile the database? Is this an automatic process or are there some human ressources involved. Just curious. wiwo On Friday 14 March 2003 11:06, you wrote: Not sure why this is happening, but it seems a bit much to fork a whole new process for this. :) Let me plug something I was working on but have not really made public yet: http://opentarget.scheffers.net/ Pure Tcl implementation or just put the database into your RDBMS. Bas. Wolfgang Winkler said: Hi! When I'm executing the statement set str [exec geoiplookup www.aolserver.com] from an AOLSERVER tcl file I get the following error: --- US error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?) --- Geoiplookup is a tool that tries to guess where an IP is located. Notice that the country US is returned correctly. Unfortunately, when I catch the error $str isn't filled. The same line works fine without error in tclsh. Does anybody know how to circumvent this error? wiwo -- Digital Concepts Ideen-Konzepte-Lösungen [EMAIL PROTECTED] www.digital-concepts.com Mobil: +43 699 / 20 88 13 51 Büro: +43 732 / 77 27 27 I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ -- Digital Concepts Ideen-Konzepte-Lösungen [EMAIL PROTECTED] www.digital-concepts.com Mobil: +43 699 / 20 88 13 51 Büro: +43 732 / 77 27 27 I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] exec fails with 'child process lost'
My pleasure. The database is done with scripts, so I manualy get the database from all three registries (which are all in different formats) and then parse, combine and sort them for the database file. I will put this into one big script soon, now that people are using it! ;-) Might take over the 'maintainance' of the C module from my brother and create it as an AOLserver module. Good practice in module development and usefull as well! Bas. Wolfgang Winkler said: I've thrown the file in my tcl directory, loaded the database on startup and it works out of the box. Thanks a lot! How do you compile the database? Is this an automatic process or are there some human ressources involved. Just curious. I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] Does Tcl's rename command work in 4.0?
I'm seeing the same thing with Daniel S's nsadmin tcl module. I tires to rename the original 'ns_db' command to 'c_ns_db' and then creates a ns_db proc that adds the extra functionality. However, this fails to find 'c_ns_db' as the rename seems to hav failed somewhere -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED] Behalf Of Jamie Rasmussen Sent: Thursday, March 13, 2003 9:21 PM To: [EMAIL PROTECTED] Subject: [AOLSERVER] Does Tcl's rename command work in 4.0? Does Tcl's rename command work in AOLserver 4.0? With 3.3+AD13, if I add rename cmd cmd_old to a file in modules/tcl, it seems to work. But the same code doesn't appear to be working on 4.0 beta 3. Any ideas? Thanks! Jamie I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
[AOLSERVER] Simple Problem
I placed this file in server/modules/tcl/hello.tcl set hello Hello %s ns_register_proc GET /hello howdy proc howdy {conn context} { global hello ns_return [format $hello Jeremy] } When I access, /hello I recieve: [14/Mar/2003:11:16:20][17125.65541][-conn:server1::0] Error: can't read hello: no such variable can't read hello: no such variable while executing format $hello Jeremy (procedure howdy line 3) invoked from within howdy cns0 {} Can anyone help me out? I'm not certian what I am doing wrong. Jeremy I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] Simple Problem
On Fri, Mar 14, 2003 at 11:49:47AM -0500, Jeremy Cowgar wrote: I placed this file in server/modules/tcl/hello.tcl set hello Hello %s ns_register_proc GET /hello howdy proc howdy {conn context} { global hello ns_return [format $hello Jeremy] } [14/Mar/2003:11:16:20][17125.65541][-conn:server1::0] Error: can't read hello: no such variable Yes, you need to read the docs: http://aolserver.com/docs/devel/tcl/ http://aolserver.com/docs/devel/tcl/tcl-general.html Well, hm, those oldish docs aren't quite as clear as they could be. But anyway, the main point is: Tcl globals are per-thread in AOLserver, NOT server wide. If you need a server-wide variable, use nsv instead. Don't feel too bad, this is a very typical mistake for people to make when new to AOLserver, until they read and remember the docs on how the basics of multi-threaded Tcl in AOLserver works. :) -- Andrew Piskorski [EMAIL PROTECTED] http://www.piskorski.com I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] Simple Problem
On Friday 14 March 2003 17:49, you wrote: I placed this file in server/modules/tcl/hello.tcl set hello Hello %s ns_register_proc GET /hello howdy proc howdy {conn context} { global hello ns_return [format $hello Jeremy] } When I access, /hello I recieve: [14/Mar/2003:11:16:20][17125.65541][-conn:server1::0] Error: can't read hello: no such variable can't read hello: no such variable while executing format $hello Jeremy (procedure howdy line 3) invoked from within howdy cns0 {} Can anyone help me out? I'm not certian what I am doing wrong. You should not pollute the global namespace with variables. Those are being removed (cleansed) from the interp during normal server operation. If you really like to do that, then do: namespace eval myvars { variable hello Hello %s } ns_register_proc GET /hello howdy proc howdy {conn context} { ns_return [format [set myvars::hello] Jeremy] } Cheers, Zoran I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
[AOLSERVER] ns_atstartup?
In AOLserver command set there are couple of commands executing scripts at various times and/or events: info comm ns_at* ns_atsignal ns_atexit ns_atclose ns_atshutdown What I somehow miss is the ability to execute scripts *after* the server has finished initialization but *before* it goes into normal operation. So, I've extended the command set with the ns_atstartup command. This registers scripts to be executed immediately before server is going into operation and just after the last initialization script was finished. Does anymbody know how to achieve this with the existing command-set? If not, and there is some interest from the community for this kind of functionality, I might contribute the implementation. Cheers, Zoran I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
[AOLSERVER] Dumb SSL question
It's been a while since I bestirred myself to change anything in my SSL configuration (yes, I'm *still* running AOLserver 2.1 on one server...) but I've got reason to consider SSL on one of my newer servers and I don't want to pay Verisign more than I have to (and it's a different domain name). So what are the options in this brave new century for SSL certificates that won't make typical browsers choke? Michael I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
[AOLSERVER] MySQL and 4.0?
Is their a mysql module that works with 4.0? The postgres one works great, but for speed concerns and the simplistic data I am storing, I think mysql would be a better choice. I am not against using a CVS copy if one exists. Thanks, Jeremy I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] Dumb SSL question
Find out what browser types and versions you expect your users to use and go see what CA certs are preloaded into them. That's the list of CAs you should choose from. Getting a server cert from anyone else, or generating your own, will cause your user's browsers to popup the invalid site warning. /s. On Friday, March 14, 2003, at 12:04 PM, Michael Roberts wrote: It's been a while since I bestirred myself to change anything in my SSL configuration (yes, I'm *still* running AOLserver 2.1 on one server...) but I've got reason to consider SSL on one of my newer servers and I don't want to pay Verisign more than I have to (and it's a different domain name). So what are the options in this brave new century for SSL certificates that won't make typical browsers choke? Michael I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] MySQL and 4.0?
on 3/14/03 1:30 PM, Jeremy Cowgar at [EMAIL PROTECTED] wrote: Is their a mysql module that works with 4.0? The postgres one works great, but for speed concerns and the simplistic data I am storing, I think mysql would be a better choice. For those reasons, I'd stick with PostgreSQL, especially since you already have it working. PostgreSQL isn't much slower than MySQL for smaller datasets, and can be faster for larger ones. I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] MySQL and 4.0?
On 2003.03.14, Jeremy Cowgar [EMAIL PROTECTED] wrote: Is their a mysql module that works with 4.0? The postgres one works great, but for speed concerns and the simplistic data I am storing, I think mysql would be a better choice. I am not against using a CVS copy if one exists. I think nsmysql should work just fine against 4.x once you add the #include nsdb.h bit in. I'll get around to adding that when I get some more sleep and some free time. If anyone wants to see me get to things sooner, and you live in the New Jersey area, you're welcome to come and babysit my 3 year old daughter or help amuse my 6 week old daughter, so that I can work on this stuff sooner ... :-/ -- Dossy -- Dossy Shiobara mail: [EMAIL PROTECTED] Panoptic Computer Network web: http://www.panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70) I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] ns_atstartup?
On Fri, 14 Mar 2003, Zoran Vasiljevic wrote: In AOLserver command set there are couple of commands executing scripts at various times and/or events: info comm ns_at* ns_atsignal ns_atexit ns_atclose ns_atshutdown What I somehow miss is the ability to execute scripts *after* the server has finished initialization but *before* it goes into normal operation. So, I've extended the command set with the ns_atstartup command. This registers scripts to be executed immediately before server is going into operation and just after the last initialization script was finished. Does anymbody know how to achieve this with the existing command-set? The following is the hack from Rob Mayoff test case for nscache module. It runs runtests proc after the server startup. It's not exactly the same, because as I suspect it runs a little bit later then the code registered with your ns_atstartup command. --- nscache/test/init.tcl --- # We have to wait until server startup to run the tests, because # some of the tests require spawning more threads, and you can't # do that until after server startup. ns_schedule_proc -thread -once 1 runtests --- --tkosiak I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/
Re: [AOLSERVER] MySQL and 4.0?
Hear hear!! Simple data in a highly capable RDBMS is not a sin unless you wrote a big check for your highly capable RDBMS. PostgreSQL is actually not a resource or administration hog for small datbases as compared to the Big Boys. In fact, one of the big gripes about it in the mailing lists is that the defaults for runtime configuration parameters assume you have a relatively humble machine. Large databases require tweeking of shared memory allocation, etc. Ian [EMAIL PROTECTED] 03/14/03 10:45AM on 3/14/03 1:30 PM, Jeremy Cowgar at [EMAIL PROTECTED] wrote: Is their a mysql module that works with 4.0? The postgres one works great, but for speed concerns and the simplistic data I am storing, I think mysql would be a better choice. For those reasons, I'd stick with PostgreSQL, especially since you already have it working. PostgreSQL isn't much slower than MySQL for smaller datasets, and can be faster for larger ones. I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/ I. To remove yourself from this list: Send a message to [EMAIL PROTECTED] with the following text in the BODY of your message: signoff aolserver II. For a complete list of listserv options please visit: http://listserv.aol.com/ III. For more AOLserver information please visit: http://www.aolserver.com/