Re: [Tutor] cgi script to start another process in background

2009-02-26 Thread Jay Deiman
os.getpid() time.sleep(30) os._exit(0) You should be able to verify that you have that process still running after the main process exits. -- Jay Deiman \033:wq! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] passig parameter with CGI...

2009-02-26 Thread Jay Deiman
?%s' % \ urllib.urlencode(options) u = urllib.urlopen(url) # Here you can read the response if needs be response = u.read() u.close() = That's about it. -- Jay Deiman \033:wq! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] concatenating files

2009-02-27 Thread Jay Deiman
set "totalFile" to your main output file and then call the script as "scriptname.py /path/to/datfile/directory". -- Jay Deiman \033:wq! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] rrdtool examples.

2008-12-08 Thread Jay Deiman
CENT' , 'LINE1:mph#FF:My Speed' , r'GPRINT:msmax:Max\: %6.1lf mph' , r'GPRINT:msavg:Avg\: %6.1lf mph' , r'GPRINT:msmin:Min\: %6.1lf mph\l' , r'GPRINT:mspct:95th Perc\: %6.1lf mph\l' ) - -