[Tutor] chain gangs of the mind...

Kirk Bailey idiot1 at netzero.net
Sun Aug 17 23:30:44 EDT 2003


In this case, the new program runs at the very end of the old one- specifically, 
when the editor finishes, I want it to hand off to the browser, handing it the 
name of the page just edited. so it will do the displaying of the result, 
avoiding having to write the display engine another time, import parts of the 
script, yadayadayada... I figured that if I do it right, I can avoid having more 
in  memory than is needed for the CURRENT program. Forking in this application 
is not needed.

On another note (AHHHHHH... ) I finished up the titlelisting, and included 
references to it and the backsearch in the browser footers. Browser is still 
bulching pagecode, but a bit better.
Here is alink to the wiki:
http://www.tinylist.org/cgi-bin/wikinehesa.py/FrontPage
the sourcecode:
http://www.tinylist.org/wikinehesa.txt
backsearch sourcecode:
http://www.tinylist.org/backsearch.txt
titlelist sourcecode:
http;//www.tinylist.org/titlelist.txt

I still need to do 2 things:
	* beat the processing of wikiwords into proper submission
	* create the uploader script for images to the ../images directory.

All inout is saught and appreciated.

Will read replies to any and all issues tomorrow after work. Goodnight.



Sean 'Shaleh' Perry wrote:

> On Friday 15 August 2003 18:15, Kirk Bailey wrote:
> 
>>I want a script, at the end of execution, to launch another script. I don't
>>care if this wipes the old one out of memory, namespace, whatever, it will
>>no longer be needed. When the editor finishes provessing a page, I want it
>>as a last act to launch the browser wiki script with the page name fed to
>>it. Any ideas on how to effect this?
>>--
> 
> 
> just like you do in C, use one of the exec() family.  In Python these are 
> found in the 'os' module.
> 
> You usually hear of people doing fork() before exec() because they want to run 
> a program AND keep the existing program running.
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 

-- 

-- 

end

Cheers!
         Kirk D Bailey

  +                              think                                +
   http://www.howlermonkey.net  +-----+        http://www.tinylist.org
   http://www.listville.net     | BOX |  http://www.sacredelectron.org
   Thou art free"-ERIS          +-----+     'Got a light?'-Promethieus
  +                              think                                +

Fnord.




More information about the Tutor mailing list