what nsh version?
what rscd version ?
why would running hostname need to be backgrounded and nohup'd ?
nsh -> zsh-4_3_4
rscd agent is 126.96.36.1990, OS is UP-UX 11i v1 (not compatible 8.9)
a user asked me to help him with a script that does not work, I reproduce his problem, I replaced a script name by the hostname command to simplify.
it works on some agents, not on others. Same OS, same agent version...
the solution is to use the -nohup option of the nexec command
nexec -nohup -e su - osadmin -c "nohup hostname &" works