468,110 Members | 1,806 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

Pass a variable to another python script

Hi,

I've written a small cgi python script that collects feedback from a
webform. I need to pass the values to another python script.. how do I
do this? Is this even possible? Thanks

Steve

Jul 18 '05 #1
1 2443
Steve:
I've written a small cgi python script that collects feedback from a
webform. I need to pass the values to another python script.. how do I
do this?


There are many ways (command line, socket, file, database, ...), but the
easiest solution is as parameter of a function in the other module.

In module a:

feedback = "good site"
import b
b.function(feedback)

--
Renť Pijlman
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Doug Jordan | last post: by
4 posts views Thread by MCollins | last post: by
28 posts views Thread by Christian | last post: by
1 post views Thread by drec | last post: by
10 posts views Thread by Robert Dailey | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.