Articles about scripting | UserComp.com | Page [ 4 ]

Automating Telegram Notifications with Bash Script on Ubuntu Server

Automate Telegram alerts for Ubuntu server monitoring tasks like disk space checks using a Bash script and the Bot API.

Read More
Change Code Time Duration: from '%H:%M:%S' to 'XhYmZs' instead

Convert H:M:S time duration strings to compact XhYmZs format in Python using datetime.timedelta.

Read More
Script to Find Common Strings Between Two PDF Files

This script identifies common words between two PDF files by extracting text with pdfplumber and performing a set intersection on Linux.

Read More
Unintended Discovery of an Obscure Chinese Poem (BAT File)

Resolve unintended Chinese poem output in batch files by correcting character encoding mismatches and properly escaping non-ASCII text.

Read More
Windows PowerShell: ID Values Don't Write Extracted ID, Write 'TRUE' Instead

Fixes PowerShell writing TRUE instead of extracted ID values by ensuring correct string capture from regex matches or split operations.

Read More