Linux script works on RHEL 6.8 but not on RHEL 7.2

check to see if there’s differences between the bigfix client’s environment (env) between the RHEL 6.* and the 7.* and also between your environment when using the root user interactively.
See this topic