When you run a command from your shell command line, the prevailing PATH spec allows finding the command. Background tasks may not have such PATH information. It is essential that OS environment commands used in pre/postschedule commands employ full paths to assure finding the command. When a command is not found, the common result is return code 1. And if that full string contains spaces, quoting is necessary, as specified in the client manual.
Richard Sims http://people.bu.edu/rbs