Hello,
I have python program who accept argument on start from CLI and check that argument in memcached base, do output of result and close. Thats working ok but problem is that I have ~2000 hits in seconds for that programm so he make big load on my server.
I figurate to make program who will be run in background and recieve data from other program, open thread get result and output that result. I think that will reduce my server load alot.
Problem is that I dont know how to pass argument/parametars to runing python programm.It will be comunication between two programs (one of them is python)
How to do that? What all options i have?
Recent Topics
-
Easy way to save/load data?Thryckz - Today, 02:51 PM
-
SQL Server (2008): CASE ExpressionLuthfi - Today, 11:48 AM
-
How to Insert [Tab] character in your post?Luthfi - Today, 11:40 AM
-
python 2.7 or python 3.xAlcamech - Today, 11:01 AM
-
PHP Debugger? or help?LukeDavies13 - Today, 10:23 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- Managed C++
- networking
- stream
- c
- Visual Basic 4 / 5 / 6
- console
- programming
- Connection
- import
- authentication
- element
- syntax
- hardware
- session
- sql
- javascript
- array
- printing
- generator
- game
- header
- html5
- mysql
- string
- c++
- timer
- loop
- java
- html
- ajax
- form
- C#
- jquery
- php
- assembly
- linked list
- vb.net
- xml
- android
- css
- login
- encryption
- setup
- calculator
- combobox
- binary
- pseudocode
- hello world
- innerHTML
- grid
How to pass many arguments/parametars to runinng python programm
#1
Posted 06 March 2013 - 06:31 AM
#2
Posted 06 March 2013 - 07:33 PM
I'm tempted to say you already got the solution at hand!
you said you already have a memcached base, you can use that or memcached file as parameters repository, so one program writes on there, and the other pulls off the data and makes it its parameters.
#3
Posted 07 March 2013 - 12:59 AM
I have program who pull data (its python) and program who write (its made in php) i just need to make solution how to pass arguments/parameters to runing python program and that he dont screw my server
Im very close to solution just litle thing stp me
and that is how to pass to python
Similar Topics
-

python 2.7 or python 3.x
Started by Alcamech, Today, 11:01 AM In: Language Forums → Python
python, versions, game and 6 more...
- 1 reply
- 66 views
-

python cgi session login form
Started by mutago, Today, 04:59 AM In: Language Forums → Python
python cgi session
- 0 replies
- 75 views
-

Python - Calendar - Input, Error Catching, While Loops
Started by elcentro3m, 18 Apr 2013 In: Tutorial Forums → Classes and Code Snippets
calendar, input, error catching and 2 more...
- 2 replies
- 317 views
-

Python tkinter GUI assistance
Started by Bissy, 12 May 2013 In: Language Forums → Python
toplevel, gui, tkinter, help
- 0 replies
- 128 views
-

Passing Arguments To A GUI App
Started by crokett, 02 May 2013 In: Language Forums → C#
c#
- 4 replies
- 162 views














