Open picture at the end of a program

I trying to manipulate som pictures, and are a bit annoyed by that I all the time has to manually open the PGM file, to whether or not it has done what I intended to make it do.

So is it possible using code, to open a .pgm file at the end of a program, so i don't need to do it manually, and if so , then how?
Topic archived. No new replies allowed.