Got an issue that I'm sort of drawing a blank on. 1st, I am NOT particularly gifted when it comes to scripting. Just not how my brain functions. For better or worse, I have a liberal arts degree. Now ...
Check if a file is really a file, whether a string contains anything, and whether you can run a program with these vital patterns.