When I run below command from root command line it starts properly ingres and monitor.ksh:
[ -d /home/ingres ] && (( su - ingres -c 'export II_GCNws_SVR_RESET=TRUE;iistartup -s' ) ; ( su - monitor -c /usr/scripts/monitor.ksh ))
But when I add the same line to a *ksh script the ingres doesn't start with an error:
/usr/scripts/global_script.ksh[41]: iistartup: not found
(but the monitor.ksh starts properly)
The global_script.ksh is executed by root.
Does anyone know what is wrong?
Thx in advance.
regards,m.
[ -d /home/ingres ] && (( su - ingres -c 'export II_GCNws_SVR_RESET=TRUE;iistartup -s' ) ; ( su - monitor -c /usr/scripts/monitor.ksh ))
But when I add the same line to a *ksh script the ingres doesn't start with an error:
/usr/scripts/global_script.ksh[41]: iistartup: not found
(but the monitor.ksh starts properly)
The global_script.ksh is executed by root.
Does anyone know what is wrong?
Thx in advance.
regards,m.