0
votes
2answers
4 views

loading custom gstreamer plugin raises gst.ElementNotFoundError

I'm trying to set GST_PLUGIN_PATH environment variable before loading custom gstreamer plugin in an integration test, so I need to change GST_PLUGIN_PATH programmatically. But without GST_PLUGIN_PATH ...
0
votes
1answer
35 views

CFD monitoring program [on hold]

I run a lot of computational fluid dynamics (CFD) calculations. For many reasons, I would like to write a program which will monitor the output of the log file given by the CFD solver and adjust its ...
0
votes
1answer
29 views

return ip of a server by python scipt running on it.?

i ma creating a server monitoring tool , which will be installed on any machine and that will provide server statics. i have created a script that can be deployed on any machine and can print server ...
-1
votes
0answers
30 views

ImportError: No module named 'errors'

I am trying to install pyFilesystem follow this link, firstly I installed pip with command: sudo pacman -S python-pip Then I input: pip install fs However, this is what I got(only the error ...
0
votes
1answer
21 views

How do I programmatically get a list of packages from apt?

How can I use Python/python-apt to programmatically get the same result as "dpkg --get-selections"?
1
vote
3answers
30 views

How can i make the python program to check linux services

I want to make simple python script , which i can run on cron job. i just want to see if these services are currently running or stopped Httpd mysql How should i check them with python. Do i need ...
0
votes
1answer
15 views

Python process has no traces after unix terminal session is closed or timed out

I have started a long running python script. It was supposed to be running for more than 4 hours. I have started the script in a background redirecting console output to some text file. I was ...
2
votes
1answer
46 views

Python, what is the correct way to determine if a Unix process is running?

I have some existing code that determines whether the system is running: def is_running( self ): init_scripts = glob.glob( os.path.join( settings.INIT_SCRIPT_DIR, self.pp ackage_name + ...
2
votes
1answer
32 views

How to trully bind key in python console program in linux?

I'm looking for key binding in python [linux]. My program must catch key 'q' and close correctly. I found this import curses stdscr = curses.initscr() curses.cbreak() stdscr.keypad(1) ...
0
votes
1answer
26 views

Python whit shell Command interaction

Im trying to interact whit a multiple shell program that one is written in python other in perl and other in ruby.. thought the terminal they run simple as a commands $python demo.py Option1 ...
-1
votes
1answer
23 views

Fetching the output of a command executed through os.system() command

I am using a script where I issue a shell command to a remote server (ssh) using os.system() command. I need to collect the output of the command I executed on the remote server. The problem is the ...
0
votes
1answer
14 views

Installing GDAL python binding Linux

I've been trying to install the python GDAL binding from source with ./configure --with-python but when i attemp from osgeo import gdal I get: Traceback (most recent call last): File ...
0
votes
2answers
54 views

How do I properly use python to access system commands and make my script work?

So the script I have is to have a larger dzen2 outputting conky on the screen when I have less than 3 workspaces open on i3 and shrink it back down when I have more than 3 workspaces open. Here's the ...
0
votes
0answers
26 views

Finding screen resolutions in a world without $DISPLAY through python or shell scripting [migrated]

I am Developing a personal project/ idea for a headless Raspberry Pi that works without a gui display. I am working on a text graphicsesque design. As the Raspberry Pi allows one to plug into most ...
-2
votes
0answers
25 views

Create a daemon with python [on hold]

I'm new to python and i want to write a daemon to act as an interface between a web-GUI (control panel) and some sort of Linux services and os. Security and performance are very important in my ...
1
vote
2answers
79 views

Run a vim command from a python script

I have configured a keyboard shortcut using xbindkeys to run a python script. Now, while editing any vim file if that user press that keyboard shortcut- I want my python script to run this command ...
0
votes
2answers
38 views

Are there a tools that can help to treat files as tables in a database?

I have csv files and would like to treat them as tables of a database. Of course I can transform these files into tables. But it would be nice to have a possibility to do it directly in the command ...
0
votes
0answers
9 views

Amazon Elastic Beanstalk CLI issues on linux: zlib error

I am trying to use elastic beanstalk cli on an amazon linux instance and I always get zlib module error. This probably is more to do with my linux/unix ignorance but please send any inputs you have. ...
1
vote
2answers
54 views

what does ^@ sign in .txt file suggest

I was concurrently manipulating a txt file (some r/w operation)with multiple processes. and I saw traces of special signs as ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ spreading across some ...
0
votes
1answer
13 views

How do I create multiple script-daemons with zdaemon?

I am using a script for log file analysis. This script is started as daemon, using zdaemon. Jan Vlčinský wrote an excellen article about it here: ...
0
votes
0answers
25 views

Python 2.7.3: Loading animation (custom) while an os.system() command is running

Im making an easy package installer program in a CLI environment with python. and while the part where i execute os.system('dpkg -i ' + packageName + '--yes') i want to add like a loading thing ...
0
votes
0answers
13 views

PowerManagement.Inhibit works with dbus-python but not dbus-send

I am working on a project where I need to inhibit power management (e.g. suspend) programatically. I am able to do so perfectly from Python: import dbus pm = ...
1
vote
2answers
34 views

Defining the command line arguments of a linux command in python

first of all, sorry for the imprecise title (if someone has a better suggestion how to name this thread feel free to tell me), my question is not that complicated at all. I wrote a small program in ...
1
vote
2answers
39 views

Dump All Python Interpreter Errors into a Log? [duplicate]

Is it possible to dump all errors reported by the Python Interpreter into a log stored as say /var/log/python.log regardless of what script/command caused them? What would be the best way to do this ...
1
vote
4answers
75 views

I'd like my code to flow with my terminal a little better

So I have a fully functional py script running on Ubuntu 12.04, everything works great. Except I don't like my input methods, it's getting annoying as you'll see below. Before I type out the code, I ...
0
votes
1answer
26 views

Create a package files python

I need to create a script to copy all files .class and .xml from multiple folders and generate a package something like tar type, those diferent path folders will be filled when the script runs, is ...
1
vote
3answers
35 views

How to prevent images from appearing on the screen in Matplolib? Python

I have a quick question I am trying to solve. I have a script that processes about 2000 files, generates images and saves images to either PDF or image format. But I am not able to prevent images from ...
1
vote
2answers
24 views

How to set the rights of a python-generated file, executed by logrotate

I'm using syslog-ng to write the logs of a cisco pix firewall with a raspberry pi. The logs are rotated daily. After rotation, the last file is passed to a python script, that searches all ip ...
0
votes
4answers
59 views

Django - ImportError: No module named city

Django keeps telling me this, even after recoding everything, and I cannot seem to find help on Google. Project folder is as follows: $ tree . |-- project | |-- __init__.py | |-- __init__.pyc | ...
0
votes
3answers
77 views

Python threading vs. multiprocessing in Linux

Based on this question I assumed that creating new process should be almost as fast as creating new thread in Linux. However, little test showed very different result. Here's my code: from ...

1 2 3 4 5 88
15 30 50 per page