"I know the error is telling me the "patCommand" cannot be found"
The error is -NOT- telling you "patCommand" cannot be found, so you do not 'know' this.
The error -IS- telling you "
sh: pat: command not found", which broken down into pieces is "sh" (the process that's complaining, (your shell)): "pat" (the name of the offending piece): "command not found" (the problem being reported).
If you break it down that way, your shell is telling you that it can't find 'pat'. This is why you need to specify where 'pat' is by providing the full path to that executable. For example, on my system, it would be '/usr/bin/pat', instead of 'pat', though the location of pat on your system migth be somewhere else. The command given by WB4KSL "which pat" should provide you with the full path, assuming your shell knows where it is. Otherwise you can do something like 'find / -name pat' to search every file on your system and maybe figure it out that way.
-J