-1
votes
2answers
28 views

trap command used to protect a file from Alt + f4

I want to know whether Trap command will be use to protect a file from SIGKILL (ALT+ F4) signal or not. If it is then the following command will does that? trap ~/Desktop/left.py SIGABRT I'm trying ...
1
vote
1answer
23 views

OverflowError: user id is too big

Runtime environment: Mac OS X 10.8.3 Intel 64bit Python 2.7.3 How to solve the setuid nobody length issue? bash $ id nobody uid=4294967294(nobody) gid=4294967294(nobody) ...
0
votes
1answer
27 views

Running Java Application using Popen

I am running tika on my Linux server, and I want to run it using python (subprocess.Popen) However, I have a non-root access, so I only have a local java installation. Every time I need to set the ...
0
votes
2answers
35 views

About piping stdio and subprocess.Popen

I have one Python program, that is opening another Python program via subprocess.Popen. The 1st is supposed to output some text into the console (just for info), and write some text to the 2nd program ...
0
votes
0answers
16 views

Sound of Debian in autoboot script don't function

I start my system (raspberry pi) with a python script. In this script i use: os.system('mpg123 mysound.mp3 &') With the autoboot (script) the sound don't function, but if i start the system ...
0
votes
1answer
37 views

Running function in python script from linux runs whole script

def parseCommand(): args = None if len (sys.argv) < 2: print('no command entered') return command = sys.argv[1] print ('command executed: %s' %command) if ...
0
votes
1answer
30 views

curl command Chinese/Japanese url encode

I want send a post request to a site. The python code below works fine. # -*- encoding=utf-8 -*- import urllib, urllib2 url = "http://xxx.com/login.asp" req = urllib2.urlopen(url, ...
1
vote
1answer
57 views

Convert MSword to XML/HTML on Linux

I need to convert MSWord file into XML or HTML, while preserving the structure of the file (mainly tables). I happened to find tika, which is quite powerful in extracting text from MSword files (and ...
1
vote
0answers
29 views

python unpack buffer data

I am using the rlm_python module in radius and its get the DHCP location option 82 from coovachilli in hex or binary format, catching it as a string shows as this value ...
2
votes
1answer
56 views

Get fat32 attributes with python

How i can get fat32 attributes (like archived, hidden...) in linux without spawning a new process with fatattr utility call ? May be there is python binding for it or for linux/fs functions ...
3
votes
1answer
46 views

How to read out scroll wheel info from /dev/input/mice?

For a home robotics project I need to read out the raw mouse movement information. I partially succeeded in this by using the python script from this SO-answer. It basically reads out /dev/input/mice ...
0
votes
1answer
46 views

Test harness for python

I am coding in python where I need to run servers. For this I open each terminal and start each server. Finally I have a client that contacts servers to get the information. Now I need to test this ...
1
vote
1answer
33 views

Python 3.2 os module - python functions or linux commands?

After reading http://docs.python.org/2/library/allos.html, I am a bit unclear on whether the os module contains functions that perform the same functions as system commands or if they are calling ...
0
votes
1answer
46 views

Installing python3 in Linux when python2 is native

I'm trying to get python3 working and all setup while keeping the python2 libraries in tact (system dependencies and all that). I've installed Python3.3 (compiled, etc..) and its in /usr/bin/Python3 ...
1
vote
3answers
55 views

python unpack binary data

i am writing a rlm_python module for radius which grabs location from "Accouting-Request" packet however, the location is on binary format, "\001\027\002\025\001+\001\024" when i try to unpack ...
0
votes
0answers
15 views

How does GLib identify my local data folder?

When I import GLib into my Python script: from gi.repository import GLib How does it find my local data directory ~/.local/share with the method: GLib.get_user_data_dir()
0
votes
1answer
28 views

How to correctly handle autorun start & stop on linux with python

I have two scripts: "autorun.py" and "main.py". I added "autorun.py" as service to the autorun in my linux system. works perfectly! Now my question is: When I want to launch "main.py" from my autorun ...
0
votes
2answers
38 views

Linux python read output from a running python script

I have a python script running as service in linux (also as autorun), and it does plenty of output! How can I read this output when the program is already running? Maybe I could log all the output ...
2
votes
2answers
37 views

Get and Set X11 clipboard(s) in Linux

I have Foxit Reader running in WINE on Ubuntu 12.04. I want to copy and paste text into a bookmark, but I need to capitalize it (e.g., fusion becomes Fusion). I want to press F5 and run a python ...
0
votes
0answers
38 views

installing Django on a remote server not working [migrated]

I am attempting to install Django on a remote server. I have yum installed the following: apache mod_wsgi Django mysql (python is already installed) I have uploaded my project to the directory: ...
0
votes
1answer
22 views

How to search for a list of file name on the server using linux bash shell tool

I am looking to see if the server has file name that i m looking for. I have list of file names on the text file and want to see whether these files existed in the server. Is there a way that I can do ...
-2
votes
2answers
51 views

Bash/python/perl magic to get aggregate datetimes across multiple log files

I have a directory (/home/myuser/logs) that contains the following log files for the last 5 days: applogs_20130402.txt applogs_20130401.txt applogs_20130331.txt applogs_20130330.txt Each line of ...
0
votes
0answers
32 views

Alternative to select (python) working with all features on windows

I wonder if there is some alternative to select.select(in,out,except,timeout) in python that would work just as select from linux, but also on windows. Normal select works also on windows but it ...
0
votes
0answers
12 views

Change gtk application theme to a default with python and gtk 3

Is there a way I could tell my python 3 application to use for example always the Adwaita theme (Gnome 3 default theme) with GTK?
0
votes
2answers
43 views

Binaries I created with pyinstaller are incompatible with linux

I used the recent version pyinstaller with the option --onefile to create one stand alone file of my python script. On my Mac it works just fine if I open the file in the terminal (bash shell), but in ...
3
votes
1answer
42 views

Anaphor resolution in Python

I want to use Anaphor resolution in my project related to text mining. I am doing the project on the Linux platform and I am using Python. I have searched on net but there is no appropriate toolkit ...
0
votes
0answers
59 views

Python module not installing correctly (linux)

I've been learning python over the past couple of days from Head First Python. I've reached a point where I have to build a distribution package of a module I've made, called nester, and install it ...
0
votes
0answers
25 views

How to detect CAN device insertion and removal in Linux using Python

I've been researching for a while on how to best detect an CAN-USB device being connected and disconnected from a Linux platform (Ubuntu 12.04), but it has been slow progress. The best advice I can ...
1
vote
2answers
43 views

How to send data from Windows to embedded linux over USB

My setup looks like this: A 64-bit box running Windows 7 Professional is connected to a Beaglebone running Angstrom Linux. I'm currently controlling the beaglebone via a putty command line on the ...
1
vote
0answers
24 views

gtk on lucid requires Python 2.5? [migrated]

I tried installing gtk2 with the following command: sudo apt-get install libgtk2.0-dev The installation gets stuck at Setting up python-orange (0.0.12741~svn-1) ... /bin/sh: python2.5: not ...

1 2 3 4 5 79
15 30 50 per page