Command-line application for monitoring a program