Tagged Questions
0
votes
2answers
25 views
Logging ping successes and failures in linux
Here's a short version of my situation. My current ISP is not working properly, and as a result, I'd like to log ping successes and failures as proof it isn't working. I'll be on Linux, but Windows ...
0
votes
1answer
10 views
web page python script - how to handle inline credentials?
I have written some scripts that get called in html while a web page is loading. I have occasionally been required to pass credentials to some service in these scripts. An example would be:
stdout = ...
-4
votes
1answer
54 views
join only specific rows together into one column and delimit with a “/” character [on hold]
I have a tab-delimited file which looks like this:
0 AG0001-C
G G C G
G G C G
0 AG0002-C
G G C G
G G T G
...
0
votes
0answers
29 views
How to delete directory from PYTHONPATH in Linux
How to delete directory from PYTHONPATH in Linux. I asked delete permanently folder, no delete with sys.path . This is my new PYTHONPATH
['', ...
0
votes
1answer
15 views
Python - running a file listener when system boot till system switched off to do some automated actions, but not working
I have to read a file forever such as when system boot and till end. Based on the file events python script has to take actions. But its weired that my python script is not doing so.
Step 1: crontab ...
0
votes
1answer
41 views
Communication between a Python parent and C child processes in Linux
I am developing a Python application that needs to spawn a child process (written in C) from time to time, to feed it some binary data and to get a reply. The child process will only be spawned when ...
0
votes
0answers
27 views
Tornado Python as daemon
I have my code written with tornado and I want to make it work pretty much like apache or nginx, that is
It must keep listening to the port even when I close the shell.
It must start automatically ...
0
votes
1answer
27 views
How can I import urlparse in Python on centOS?
I've been working on a Python web crawler, and have got to the stage where I am configuring a Linux box (centOS) for it to run on.
Everything works fine locally, however, when I try to run the script ...
0
votes
0answers
41 views
Process not killed after completion in linux using python
I have a python program that has a limit of 10 processes running at a time. When the 11th process comes in, it waits until other processes are finished. In MS Windows environment, the process ...
0
votes
1answer
21 views
Raspberry Pi: terminate raspistill command from python
I'm trying to use a PHP file on a server to transmit some variables into a Python script which will in turn start a raspistill timelapse on my Raspberry Pi.
I've so far managed to start taking ...
0
votes
0answers
27 views
Python - how to load Google Chrome or Chromium browser in the gtk.Window like webkit.WebView()?
In Python (Linux), how can i load the Google chrome or Chromium browser inside a gtk.Window()?
Where i am using now as webkit but instead of the webkit i need to use Google Chrome/Chromium because of ...
0
votes
0answers
70 views
Python program run fine on Windows but not Linux
Currently, I'm working as a social manager for my company. Part of the job is to manage several Twitter account for each department of the company. Months ago, the boss said, "whenever the company ...
1
vote
2answers
25 views
Crontab Python Script Execution (Can't find settings config file)
My Crontab -l
# m h dom mon dow command
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
00 8,20 * * * python /home/tomi/amaer/controller.py ...
0
votes
1answer
18 views
FreeSwitch - how do i parse and take action using python?
I have this dial plan and i want to handle the dialed number using python. But its not working any idea?
default.xml (dialplan):
a.py (main dialing number router):
import ...
1
vote
4answers
43 views
Python Test Code inside VI
Sometimes I need to test my python code in shell, so I have to edit the code, save and quit and run the code. Then reopen the file to modify my code if anything goes wrong. Then save and quit .... I ...