Tagged Questions
1
vote
1answer
21 views
Need help to sort processed mdb file in Python on Linux machine
I am trying to extract a table from .mdb file, then filter that table and spit out the result into short .csv file. So far I was able to extract the table needed and save it's content into .CSV. But I ...
0
votes
2answers
62 views
Running Python script from bash: Command not found error
I Get command not found error. 0 and $filestem are the two args and I had the following in a script. And when i execute the script, I get command not found.
echo -e "Enter the file stem name"
read ...
1
vote
0answers
21 views
Same permissions, different rights?
I am running a Python script within an Apache server through CGI. Inside the script I try to read files that reside inside /home directory. However, I can read one file and not the other. This is very ...
0
votes
0answers
47 views
Why interpreter path in first line of python script is truncated? [duplicate]
I have one test script which create virtual environment and run some test in that environment.
Now the problem is when it create virtual environment it give path of python interpreter created in ...
0
votes
1answer
20 views
Benchmarking System performance of Python System
I'm looking at using inotify to watch about 200,000 directories for new files. On creation, the script watching will process the file and then it will be removed. Because it is part of a more compex ...
0
votes
1answer
34 views
Try to write into syslog
I am working in linux and the process rsyslogd is listening to port 514.
The following code can't write into /var/log/syslog.
Is anybody know what is the problem?
import logging
import ...
0
votes
1answer
25 views
wget gives response ERROR: 418 unused
I am trying to run wget http://about.me/xxxxxx, which points to a personal page of about.me. Doing this gives me the response: ERROR 418 unused
I also tried to write a python script with urllib2 to ...
0
votes
0answers
25 views
nohup not ignoring SIGHUP
I am trying to run a python script with chef, and the script will exit when chef exits because of SIGHUP. I am using nohup but it still gets the signal. Any ideas how I can get this script to run in ...
0
votes
1answer
35 views
Convert a Python package into a standalone application
I have already many docs on Pyinstaller and others but all I have found is ways to convert a single .py module into a executable.
I have a python application structures as:
bbdatasync/
...
1
vote
2answers
38 views
UnboundLocalError: local variable 'W' referenced before assignment
Following my previous question. I was advised to make a separate python library and then import it.
After reading a bit more on Stackoverflow, I realized that the best way is to write methods and ...
0
votes
1answer
24 views
Reading logs with fabric
I'm trying to read log with tail -f with my fabric script:
@task
def log(service):
sudo("tail -n 50 -f " + service)
With -f option you have to manually terminate tail by Ctrl-C. It doesn't work ...
0
votes
0answers
11 views
Can't install phpsh on linux using global install
I am trying to install phpsh on my fedora system, globally. After installing python-devel, ncurses, ncurses-devel and readline I finally got the installation to work:
python setup.py build
sudo ...
0
votes
2answers
48 views
Python 2.7 - Classes
I'm trying to edit a library in python (perfmon) - the file is session.py
I want to add a module that can record some readings from a USB port.
This is also my first trial with classes in python
...
0
votes
1answer
32 views
os.system vs subprocess in python on linux
I have two python scripts. The first script calls a table of second scripts in which I need to execute a third party python script. It looks something like this:
#the call from the first script.
...
3
votes
2answers
51 views
How to redirect all output of a screen background process in Linux? [closed]
Trying to find out why a particular process we run with screen is not starting. For this reason, it would be very useful to be able to redirect the output of a screen to a file (like as if using the ...