Tagged Questions

1
vote
0answers
16 views

Python on linux-2.6.36, Fast pyserial Reads Yield Duplicate Bytes

Questing about wildly for some help with this strange issue. I'm running Python 2.7.2 on Linux kernel 2.6.36, trying to continuously read bytes in at 115200 baud, 11520 bytes per second, 8N1. The ...
0
votes
2answers
31 views

to establish the connection with the some web page in python

I have to work on a project in which I have to establish the connection with the web page so that I can collect the xml dtd schema fragments from that page and apply my search algorithm on it which ...
2
votes
1answer
56 views

How to read and truncate the snmptrapd log file without restarting the daemon

i have made a python script that performs a nagios check. The functionality of the script is pretty simple it just parses a log and matches some info witch is used to construct the nagios check ...
0
votes
2answers
47 views

implementation errors in cookies

UPDATION: I have updated my post with images, please see now what I exactly want : My front_page: user hase entered the word 'name'. after the user presses search, the user is getting the ...
0
votes
1answer
36 views

PHP not executing python script correctly

I'm executing a python script from a php page like so: exec("python ./test.py"); This script runs fine if I don't open a serial port in it. If I do, however, (and this is the whole point of calling ...
1
vote
3answers
31 views

Starting and stopping processes in a cluster

I'm writing software that runs a bunch of different programs (via twisted's twistd); that is N daemons of various kinds must be started across multiple machines. If I did this manually, I would be ...
2
votes
11answers
78 views

Quick way to know if a file is open on Linux?

Is there a quick way (i.e. that minimizes time-to-answer) to find out if a file is open on Linux? Let's say I have a process that writes a ton a files in a directory and another process which ...
1
vote
1answer
31 views

Draw and write imagefile without Window

I found that using matplotlib just to draw a diagram into a file is not as easy as it seems from reading the tutorials. In the tutorials it is explained, that you just accumulate the data and then: ...
1
vote
1answer
20 views

error in implementing static files in django

my settings.py file:- STATIC_ROOT = '/home/pooja/Desktop/static/' # URL prefix for static files. STATIC_URL = '/static/' # Additional locations of static files STATICFILES_DIRS = ( ...
0
votes
1answer
26 views

to use charts in app (created using django) created using pylab in the html file

My code: <html> <style type="text/css"> h1 { position: absolute; top: 5px; left: 200px; } form #Edit1 { ...
0
votes
0answers
76 views

How to manually stop a Python script that runs continuously on linux [migrated]

I have a Python script that is running and continuously dumping errors into a log file. I want to edit the script and run it again, but don't know how to stop the script. I'm currently logged on ...
0
votes
1answer
35 views

/usr/bin/env: python2: No such file or directory

I am trying to configure python for my emacs on ubuntu and I get the following error - /usr/bin/env: python2: No such file or directory Can someone help me with it ? What do I do resolve it ? ...
1
vote
0answers
25 views

to convert dom document object to noode type object

My code: #!/usr/bin/python import xml.dom.minidom from array import * import re count = array('i',[0,0,0,0,0,0,0]) def find_root_tags(file,str1,i): dom = xml.dom.minidom.parse(file) if ...
0
votes
3answers
61 views

How to change the working directory for a shell script (newbie here)

I have a python script that looks files up in a relative directory. For example: the python script is in /home/username/projectname/. I have a file that is being called within the python script that ...
1
vote
0answers
37 views

A way to control Google Earth from Python on Linux

I have dowloaded a python script that uses win32com module (project site) to start and control Google Earth aplication on Windows. The commands in the script can also be used to interactively control ...

1 2 3 4 5 107
15 30 50 per page