I used IP aliasing technique to assign multiple IP addresses on a single NIC. I am using these IPs in a Python script to generate traffic. I am doing this for my college project. How can I determine, ...

I want to establish an SSH tunnel on an existing connection. The tricky part is doing it from a script (a custom shell I need to allow users only some specific things, like setting up this tunnel).
...

I have a folder with 500,000 images, sorted in subfolders by year and month. I'd like to create a script that does this:
If the filename does not match any of the filenames in names.log then delete ...

Is there a way to display or is there a tool that can parse a crontab expression and display it in a human-friendly way?
10 6 * * * sh /usr/local/crons/file_check.sh
For example, for the above cron ...

I am trying to continuously run a python script with random parameters from another python script, where each run is in its own tmux session. A very simplified overview of what I'm trying to do goes ...

I would like to implement a fake FTP transfer in a program I'm working on. Basically I just want there to be FTP traffic happening in the background for a variable length of time. Similar to how iperf ...

I am running Linux Ubuntu 14.04 LTS and am trying to install wxPython so I can develop GUIs on python.
I have python 2.7 and 3 installed but 2.7 in default.
I have installed wxPython as recommended ...

I need help with part of python code. I have search function which will search for string in file, and retrun it if found, or give Error dialog if not found. Also after Error dialog is closed, give ...

I only have little experience in programming, and I'm currently working on improving my skills.
Basically, I need to write a program, that can do some specific processes to some data in a .txt file.
...

If I am writing some python and I only want the terminal to show a certain line, what command do I use?
For example my program is:
print("line one")
print("line two")
print("line three")
And I only ...

I am attempting to write a speech recognition program for the raspberry pi, however I am facing some issues using python's speech_recognition library.
From the error messages (posted below) I think ...

I am trying to implement constant voice recognition on my Pi at the moment, I am achieving this by having two threads running, one constantly recording (with arecord in a bash script) for X amount of ...

I've been beating my head against the wall trying to troubleshoot a graphical program with a WX backend. We've found that wxPython 2.8.10 work fine, and seemingly any newer releases doesn't. Despite ...

I am trying to find an unmapped window on my X server in order to map it back and send it some EWMH hint. Because the window is unmapped I cannot use EWMH to ask the window manager directly. So I am ...

I've installed Butterfly http terminal server, written in python, on my Arch machine. I'm new to systemd, but I'm having an issue with one of the command line parameters.
/usr/bin/butterfly.server.py ...

I have a FreeBSD 10.0 system, and a couple of days ago, I upgraded my python27 port from Python 2.7.8 to Python 2.7.9, which enabled SSL verification by default. Unsurprisingly, it broke my existing ...

According to the accepted answer for this SO question: , Python can make a great bash replacement.
My question then, is this: how do I go about seamlessly make the switch? I think the main thing to ...

So, I wanted to run Python 3.4.x inside a virtualenv virtual environment. I learned that the first step should be to build Python 3.4.x.
I was doing so in /usr/bin/Python3.4.x (a folder I created), ...