Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Fergus H. — — source: Informix-list mailing list archive (1991-1998)
This is the important bits of my /sbin/init.d/online script linked to
/sbin/rc4.d.
Hope it helps
'start')
cat /home/informix/online.log >> /home/informix/online.log.old
cat >/home/informix/online.log
INFORMIXDIR=/opt/informix export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin export PATH
ONCONFIG=onconfig.dev1 export ONCONFIG
INFORMIXSERVER=dev1 export INFORMIXSERVER
oninit
set_return
onstat
;;
'stop') INFORMIXDIR=/opt/informix export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin export PATH
ONCONFIG=onconfig.dev1 export ONCONFIG
INFORMIXSERVER=dev1 export INFORMIXSERVER
onmode -ky
set_return
onstat
;;
Fergus
Jun H. Zhang wrote in message <350ff5f8.0@webserver.flclerks.com>...
>I created a script under /etc/rc2.d (Unixware 2.1.2)
>with the following line
>
>su - informix -c /home/informix/bin/oninit
>
>This is not successful, since within the informix
>.profile there are some interactions with the
>standard input. How can I respond
>to questions asked by the .profile script within
>the script runing at boot time?
>
>Jun
>
>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.