Category Archives: Python

Remove special and control characters from string using Python

Today I had a database table which contained special and control characters (like DLE, DC1, ACK, DC3 etc.) in its records. After some searching I found a way to substitute those characters with their respective unicode escape value. And here … Continue reading

Posted in Linux, Python | Tagged , , , , , , , | Leave a comment

Linux get hard disk statistics using Python

Today I wanted to collect disk usage information and send them to a remote server script. I used df command to collect disk usage information and Python to send them to a remote server. Note that the remote server script … Continue reading

Posted in Linux, Python, Ubuntu | Tagged , , , , , , , | Leave a comment