Category: Blog
-
Python program to resize images
When you first run the Python script, it will create an input and output directory. After the first run of the script, place the image files in the input directory and run the script again. Created files will be in the output directory. Works with files ending in .jpg or .JPG.
-
Capturing a program’s exit status in a Bash script
Use of a Bash script to capture an exit status in a Python program. Would also work for a C/C++, Java, or any program that can exit with an exit status. Useful for running batch jobs in a scheduler program like IBM’s Workload Scheduler(formerly known as Tivoli Maestro). Python program is shown first. Simple program…