Skip to content

Tag: python

Serial Numbers from a Storage Controller over SSH

Background I’m working on a bash script to pull serial numbers and part numbers from all the devices in a server rack, my goal is to be able to run a single script (inventory.sh) and walk away while it generates text files containing the information I need. I’m using bash for maximum compatibility…

Move python folder on linux

I have compiled python sources with the –prefix option. After running make install the binaries are copied to a folder of my account’s home directory. I needed to rename this folder but when I use pip after the renaming it says that it can’t find the python interpreter. It shows an absolute …

TCP client cannot connect to TCP server

I have configured a Raspberry Pi to be client, and my personal computer to be TCP server, and trying to connect to server via an ethernet cable. On my personal computer I use Comm Operator and select port “1234”. Raspberry Pi (TCP client) has following setup: Raspberry Pi (TCP client) has the foll…

root.query_pointer()._data causes high CPU usage

I’m a total noob in Python, programming and Linux. I wrote a simple python script to track usage time of various apps. I’ve noticed that after some time python is going nuts utilizing 100% of the CPU. Turns out it’s the code obtaining mouse position is causing issues. I’ve tried runnin…