I'm running a shell script created on the Q-shell platform. The script I created runs fine when run from the qsh command line. It also runs fine when called from the 400 command prompt by issueing qsh cmd('......') However, if I try to schedule the job using wrkjobscde and in there use the qsh cmd('....') calling method, the job does get kicked off as it should on the given scheduled date/time, but it immediately fails with: Error Message : 001-0012 Error found starting child process. SYSTEM RESOURCES NOT AVAILABLE TO COMPLETE REQUEST.
I have put in debug "echo" statements in the shell script to see at what point this fails and from what I can see, it fails when I try to call out to the system to do a task and pass it back to a variable in the shell script. An example of the code that fails is-> export thisHost=$(hostname | sed 's/\..*//')
What I don't understand is how this can run fine from the command line in qsh or as called from a qsh cmd call, but just going through the job scheduler causes this different behavior. Anyone have any ideas?
I have put in debug "echo" statements in the shell script to see at what point this fails and from what I can see, it fails when I try to call out to the system to do a task and pass it back to a variable in the shell script. An example of the code that fails is-> export thisHost=$(hostname | sed 's/\..*//')
What I don't understand is how this can run fine from the command line in qsh or as called from a qsh cmd call, but just going through the job scheduler causes this different behavior. Anyone have any ideas?
Comment