A simple script for logging a programs activity