I assume you mean that your system call is telling you it can't find this: /users/grad2/doemer/eecs22/bin/pnmtojpeg.tcsh
Because none of your other error messages you have in there match what you say you are getting. So make sure you can actually run pnmtojpg.tcsh from your shell manually.
Quzah.