[AOLSERVER] [AS 4.0] Shutting down the server

2003-03-17 Thread Jean-Fabrice RABAUTE
Hi all,

I can't find how to stop the nsd process for the version 4.0 (4.0 beta3).
In the 3.x series, I was using the -K flag on the command line to stop the
server.

Is there a new way to shutdown aolserver v4.0 ?

Thanks.

Jean-Fabrice RABAUTE
Core Services
http://www.core-services.fr
Mob: +33 (0)6 13 82 67 67


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Jeremy Cowgar
What does everyone else use for editing ADP's? TCL for that fact as well.

Jeremy

On Sunday 16 March 2003 08:39 am, you wrote:
 Greetings.

 I use emacs for all text editing and I was running into a problem with
 editing ADP's. With html-helper-mode I can do things like narrow down to a
 JavaScript block and edit JavaScript with a JavaScript mode (syntax
 highlighting, language helpers, automatic indenting, etc...). I wished to
 have the same thing for editing Tcl blocks in my .adp's % ... %.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Kevin Lawver
jEdit (www.jedit.org).  It does a good job of markup highlighting, and works on all four platforms I use.  It comes with all kinds of code highlighting presets built in, and handles pretty much everything I've thrown at it without dying.  

Kevin

In a message dated 3/17/03 9:19:25 AM, [EMAIL PROTECTED] writes:


What does everyone else use for editing ADP's? TCL for that fact as well.

Jeremy

On Sunday 16 March 2003 08:39 am, you wrote:
 Greetings.

 I use emacs for all text editing and I was running into a problem with
 editing ADP's. With html-helper-mode I can do things like narrow down to a
 _javascript_ block and edit _javascript_ with a _javascript_ mode (syntax
 highlighting, language helpers, automatic indenting, etc...). I wished to
 have the same thing for editing Tcl blocks in my .adp's % ... %.




--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/



Re: [AOLSERVER] [AS 4.0] Shutting down the server

2003-03-17 Thread Nathan Folkman
You should be able to simply KILL the AOLserver PID. There are a number
of ways you can find the PID:
1. Configure the AOLserver to write out the PID to a file:

   ns_section ns/parameters
   ns_param pidfile /tmp/${servername}.pid
   By default a PID file is generated as log/nspid.servername.

2. Grab the PID from a running process:

   ps -ef | grep nsd
   shmooved 19894 1  0 Mar16 ?00:00:00
/usr/local/aolserver/bin/nsd -it
3. Grab the PID from the server log:

   tail -5 /usr/local/aolserver/log/server.log
   [16/Mar/2003:21:40:28][19894.32773][-driver-] Notice: driver:
accepting connections
   [16/Mar/2003:21:40:28][19894.16387][-socks-] Notice: socks: starting
   ...
   [DATE][PID][TID]...

Then simply use KILL from the command line:

kill 19894

or

kill `cat /usr/local/aolserver/log/nspid.server1`

Or alternately, you can use the ns_shutdown command from the control
port. When the server receives the signal, it will attempt a graceful
shutdown, so it may take a few seconds.
Hope this helps!

- Nathan

On Monday, March 17, 2003, at 08:57 AM, Jean-Fabrice RABAUTE wrote:

Hi all,

I can't find how to stop the nsd process for the version 4.0 (4.0
beta3).
In the 3.x series, I was using the -K flag on the command line to stop
the
server.
Is there a new way to shutdown aolserver v4.0 ?

Thanks.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] [AS 4.0] Shutting down the server

2003-03-17 Thread Jean-Fabrice RABAUTE
Thanks a lot.

The first solution is fine for me.

Best regards.

Jean-Fabrice RABAUTE
Core Services
http://www.core-services.fr
Mob: +33 (0)6 13 82 67 67

-Message d'origine-
De : AOLserver Discussion [mailto:[EMAIL PROTECTED] la part
de Nathan Folkman
Envoye : lundi 17 mars 2003 15:33
A : [EMAIL PROTECTED]
Objet : Re: [AOLSERVER] [AS 4.0] Shutting down the server


You should be able to simply KILL the AOLserver PID. There are a number
of ways you can find the PID:

1. Configure the AOLserver to write out the PID to a file:

ns_section ns/parameters
ns_param pidfile /tmp/${servername}.pid

By default a PID file is generated as log/nspid.servername.

2. Grab the PID from a running process:

ps -ef | grep nsd
shmooved 19894 1  0 Mar16 ?00:00:00
/usr/local/aolserver/bin/nsd -it

3. Grab the PID from the server log:

tail -5 /usr/local/aolserver/log/server.log
[16/Mar/2003:21:40:28][19894.32773][-driver-] Notice: driver:
accepting connections
[16/Mar/2003:21:40:28][19894.16387][-socks-] Notice: socks: starting
...

[DATE][PID][TID]...

Then simply use KILL from the command line:

kill 19894

or

kill `cat /usr/local/aolserver/log/nspid.server1`

Or alternately, you can use the ns_shutdown command from the control
port. When the server receives the signal, it will attempt a graceful
shutdown, so it may take a few seconds.

Hope this helps!

- Nathan

On Monday, March 17, 2003, at 08:57 AM, Jean-Fabrice RABAUTE wrote:

 Hi all,

 I can't find how to stop the nsd process for the version 4.0 (4.0
 beta3).
 In the 3.x series, I was using the -K flag on the command line to stop
 the
 server.

 Is there a new way to shutdown aolserver v4.0 ?

 Thanks.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Scott Laplante
vim, obstinately. ; )

-Original Message-
From: Jeremy Cowgar [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 6:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [AOLSERVER] Emacs and ADP -- a solution


What does everyone else use for editing ADP's? TCL for that fact as well.

Jeremy

On Sunday 16 March 2003 08:39 am, you wrote:
 Greetings.

 I use emacs for all text editing and I was running into a problem with
 editing ADP's. With html-helper-mode I can do things like narrow down to a
 JavaScript block and edit JavaScript with a JavaScript mode (syntax
 highlighting, language helpers, automatic indenting, etc...). I wished to
 have the same thing for editing Tcl blocks in my .adp's % ... %.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Janine Sisk
Hear, hear! :)

I keep hearing about the studliness of Emacs and it's not that I don't
believe it - but my fingers know Vi extremely well, after using it for
nigh on 15 years (ok, that's a scary thought in itself!) and it slows
me down too much to try to learn another editor.  Maybe I'll give it a
try after I retire. :)
janine

On Monday, March 17, 2003, at 12:14 PM, Scott Laplante wrote:

vim, obstinately. ; )

-Original Message-
From: Jeremy Cowgar [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 6:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [AOLSERVER] Emacs and ADP -- a solution
What does everyone else use for editing ADP's? TCL for that fact as
well.
Jeremy

On Sunday 16 March 2003 08:39 am, you wrote:
Greetings.

I use emacs for all text editing and I was running into a problem with
editing ADP's. With html-helper-mode I can do things like narrow down
to a
JavaScript block and edit JavaScript with a JavaScript mode (syntax
highlighting, language helpers, automatic indenting, etc...). I
wished to
have the same thing for editing Tcl blocks in my .adp's % ... %.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list:
http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list:
http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/
--
Janine Sisk
President/CEO
furfly.net, LLC
Mont Vernon, NH
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Andrew Piskorski
On Mon, Mar 17, 2003 at 09:08:46AM -0500, Jeremy Cowgar wrote:
 What does everyone else use for editing ADP's? TCL for that fact as well.

XEmacs with MMM for Multiple Major Modes support works very nicely.
It's a huge improvement over the stock Tcl mode in Gnu Emacs and
XEmacs as well.  I didn't configure the one I'm using at work, so I
can't really tell you how to do so, but googling for mmm-mode gets a
lot of useful hits, e.g.:

http://mmm-mode.sourceforge.net/
http://packages.debian.org/stable/editors/mmm-mode.html

--
Andrew Piskorski [EMAIL PROTECTED]
http://www.piskorski.com


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Scott Goodwin
On 3/17/03 11:17 AM, Janine Sisk [EMAIL PROTECTED] wrote:

 Hear, hear! :)

 I keep hearing about the studliness of Emacs and it's not that I don't
 believe it - but my fingers know Vi extremely well, after using it for
 nigh on 15 years (ok, that's a scary thought in itself!) and it slows
 me down too much to try to learn another editor.  Maybe I'll give it a
 try after I retire. :)

 janine

 On Monday, March 17, 2003, at 12:14 PM, Scott Laplante wrote:

 vim, obstinately. ; )

 -Original Message-
 From: Jeremy Cowgar [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 17, 2003 6:09 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [AOLSERVER] Emacs and ADP -- a solution


 What does everyone else use for editing ADP's? TCL for that fact as
 well.

 Jeremy

 On Sunday 16 March 2003 08:39 am, you wrote:
 Greetings.

 I use emacs for all text editing and I was running into a problem with
 editing ADP's. With html-helper-mode I can do things like narrow down
 to a
 JavaScript block and edit JavaScript with a JavaScript mode (syntax
 highlighting, language helpers, automatic indenting, etc...). I
 wished to
 have the same thing for editing Tcl blocks in my .adp's % ... %.


Vim here, too. I used to use Emacs, but it was such a pain to configure and
get right; Vim seems to be easier to configure and add capabilities to. Vim
is backwards-compatible with me.

/s.

 --
 AOLserver - http://www.aolserver.com/
 To Remove yourself from this list:
 http://www.aolserver.com/listserv.html
 List information and options: http://listserv.aol.com/


 --
 AOLserver - http://www.aolserver.com/
 To Remove yourself from this list:
 http://www.aolserver.com/listserv.html
 List information and options: http://listserv.aol.com/

 --
 Janine Sisk
 President/CEO
 furfly.net, LLC
 Mont Vernon, NH


 --
 AOLserver - http://www.aolserver.com/
 To Remove yourself from this list: http://www.aolserver.com/listserv.html
 List information and options: http://listserv.aol.com/



--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Dossy
On 2003.03.17, Scott Laplante [EMAIL PROTECTED] wrote:
 vim, obstinately. ; )

vim6 here, too.  Rock on.

-- 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)


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Jeremy Cowgar
 XEmacs with MMM for Multiple Major Modes support works very nicely.
 It's a huge improvement over the stock Tcl mode in Gnu Emacs and
 XEmacs as well.  I didn't configure the one I'm using at work, so I
 can't really tell you how to do so, but googling for mmm-mode gets a
 lot of useful hits, e.g.:

When you arrive at home (if/when) you have time, I would love to see your
configs. I have tried a few things out to make this work and so far am
failing.

Thanks,

Jeremy


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Lane S. Wimberley
Jeremy Cowgar writes:
  XEmacs with MMM for Multiple Major Modes support works very nicely.
  It's a huge improvement over the stock Tcl mode in Gnu Emacs and
  XEmacs as well.  I didn't configure the one I'm using at work, so I
  can't really tell you how to do so, but googling for mmm-mode gets a
  lot of useful hits, e.g.:

 When you arrive at home (if/when) you have time, I would love to see your
 configs. I have tried a few things out to make this work and so far am
 failing.

Yeah, I'd be interested in that, too.  TIA

-Lane

___
Lane Wimberley 8303 N. MoPac, Suite A-300  Austin, TX 78759
Wayport, Inc.512.519.6195 (voice)512.519.6200 (fax)

It's like the difference between a duck: one of its legs is both the same.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Emacs and ADP -- a solution

2003-03-17 Thread Jeff Mincy
On Mon, 17 Mar 2003, [EMAIL PROTECTED] wrote:

 Jeremy Cowgar writes:
  XEmacs with MMM for Multiple Major Modes support works very nicely.
  It's a huge improvement over the stock Tcl mode in Gnu Emacs and
  XEmacs as well.  I didn't configure the one I'm using at work, so I
  can't really tell you how to do so, but googling for mmm-mode gets a
  lot of useful hits, e.g.:

There's some attribution lossage here, as well as some confusion over
the ATP's 'work' comment.  Anyway, since I did the xemacs
configuration, I guess I'll pipe in here...

mmm is available as an Xemacs package, or can be downloaded from 
mmm-mode.sourceforge.net

 When you arrive at home (if/when) you have time, I would love to see your
 configs. I have tried a few things out to make this work and so far am
 failing.

Once you have mmm installed, you need to setup so that adp pages are handled.

adp files should have html-mode as their primary mode.
  (add-to-list 'auto-mode-alist '(\\.adp\\' . html-mode))

Then you need mmm-mode setup so that mmm looks for all of the other stuff
that could be in adp pages.

  (setq mmm-global-mode 'maybe)
  (setq mmm-submode-decoration-level 2)

  (mmm-add-mode-ext-class 'html-mode \\.adp\\' 'html-tcl)
  (mmm-add-mode-ext-class 'html-mode \\.adp\\' 'html-js)
  (mmm-add-mode-ext-class 'html-mode \\.adp\\' 'embedded-css)


Then you need to make sure that html-tcl, html-js, and embedded-css
have been defined as mmm groups or classes.

Stuff between style ... /style is css, and is available with mmm,
and is repeated here.

   (mmm-add-classes
'((embedded-css
   :submode css
   :face mmm-declaration-submode-face
   :front style[^]*
   :back /style)))

Stuff inside of %  % is tcl.

   (mmm-add-group
'html-tcl
'((tcl-code
   :submode tcl
   :face mmm-code-submode-face
   :front %[!=]?
   :back %)))

The standard html-js version looks for script ... /script and handles javascript.

My html-js version looks for other languages, but probably requires
modifications that I've made to mmm-mode.


tcl mode is then setup so that anybody using the db_* functions
get sql-mode when writing the queries by doing the following:

  (mmm-add-mode-ext-class 'tcl-mode www/.*\\.tcl\\' 'ad-tcl-sql)

(mmm-add-group
 'ad-tcl-sql
 `((db-multirow
:submode sql
:face mmm-code-submode-face
:front
   ,(concat \\(
   (regexp-opt '(db_0or1row db_1row db_clob_get_file 
db_blob_get_file db_dml db_exec db_exec_plsql db_foreach db_list 
db_list_of_lists db_multirow db_string db_write_blob db_write_clob ns_ora 
orasql))
 \\) .*{)
:back })
   (ad-page-contract
:submode html
:face mmm-code-submode-face
:front ^\\(ad_page_contract\\).*{
:back ^})
))

The above requires that db_foreach sql queries be written using {} and
not .

-jeff


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] maxline

2003-03-17 Thread Zamil Murji
I read that:

AOLserver limits the length of each line in the HTTP request header,
including the request line itself. This limits the amount of data you can
put in form variables in a GET request. AOLserver does not specifically
limit the length of each form variable's value.
The limit is set in the config file, section ns/server/$server,
parameter maxline. The default is 8192 bytes.
-- Rob Mayoff, June 28, 2001

where is this config file? what steps do i have to take once i change this
config file. do i have to recompile? if so some directions would be good.

do i add this maxline parameter to my .ini file. is it case sensitive (ie
is maxline the same thing as MaxLine).

I'd appreciate any responses.

Thanks in advance.
Zamil


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] maxline

2003-03-17 Thread Scott Goodwin
I believe you limit the request line like so:

ns_section ns/server/${servername}
ns_param   maxline 10240
It defaults to 8192 in AOLserver 3.5.1.

The config file should be placed in the top level of your AOLserver
installation area, and should be called nsd.tcl. For a new
installation, you need to configure your nsd.tcl file from scratch,
using the examples from sample-config.tcl.
You don't have to recompile, you just have to restart your server.

It is not case-sensitive.

/s.

On Monday, March 17, 2003, at 05:27  PM, Zamil Murji wrote:

I read that:

AOLserver limits the length of each line in the HTTP request header,
including the request line itself. This limits the amount of data you
can
put in form variables in a GET request. AOLserver does not specifically
limit the length of each form variable's value.
The limit is set in the config file, section ns/server/$server,
parameter maxline. The default is 8192 bytes.
-- Rob Mayoff, June 28, 2001
where is this config file? what steps do i have to take once i change
this
config file. do i have to recompile? if so some directions would be
good.
do i add this maxline parameter to my .ini file. is it case sensitive
(ie
is maxline the same thing as MaxLine).
I'd appreciate any responses.

Thanks in advance.
Zamil
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list:
http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] March Madness on AOLserver

2003-03-17 Thread carl garland
For those of you interested in March Madness or just curious as
to check out a site built using aolserver architecture ... check
out www.23pools.com  Users can build their own blogs, create
their own groups, and build contests/pools of multiple types.
The majority of the site never hits the db and uses nsv caches
extensivly. Check out the process times and technical details
at the bottom of every page.
I've incorporated Amazon web services, Blogger API, and XML-RPC
into the site. Be sure to check out the site technical details
in the company info section and for those brave enough to
actually enter March Madness or any other pools ... good luck :)
Let me know if your interested in how I did any of the functionality.

Best Regards,
Carl Garland






_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/