Oooooooooooooooooh so an OS error. Ok will look into that and yes I thought the PATH was weird looking. But wasn't sure.
Thanks for the lead.
That seems to be the problem. To verify I modified the script to fully qualify the path for ontape and it works. Now got to figure out why its not getting the correct PATH.
The user Informix looks fine.
informix cars: echo $PATH
The ERP give us the Informix installer script they create so do the upgrade so must be a problem in that.
The actual problem was when the ERP vendor was coding the switch from inetd to systemctl they had an extra '$' in the conf file for informix for systemctl to use.
Removing the '$' and bouncing informix fixed the problem.
I did a which on ksh as read some Informix commands run on it and not the default shell. Was just showing we have ksh installed.
Should have explained better.