1. Since onmode-ky can be executed only under informix users. So the plan is only for informix users ..
1) Use the su-informix command to switch to informix users:
Linux :~ # Su-informix
Linux "> informix @ linux: ~>
2. Use the crontab command to create a scheduled shutdown informix service plan: informix @ linux: ~> After crontab-e is opened with this command, you need to write a script to add the command to stop the informix service. Enter the following command:
Informix @ linux: ~> Crontab-e
0 12 *** onmode-ky [y1]
~
~
~
~ After writing, wq is saved. Now, the plan to disable the informix service on a regular basis is ready ..
3. Use the crontab command to create an informix to enable the Service at a scheduled time:
Informix @ linux: ~> Crontab-e
0 12 *** onmode-ky
30 12 * oninit [y2]
~
~
~
~~ After writing, wq is saved. Then the plan to enable the informix service on a regular basis is ready.
4. Verify that the plan takes effect after completion.
Informix @ linux: ~> Crontab-l
# Do not edit this file-edit the master and reinstall. # (/tmp/crontab. XXXXPsO3Zr installed on Wed Apr 22 23:53:53 2009) # (Cron version V5.0 -- $ Id: crontab. c, v 1.12 2004/01/23 18:56:42 vixie Exp $)
0 12 *** onmode-ky
30 12 *** oninit
[Y3] informix @ linux: ~>
Note: Do not use exit to exit informix users after the plan is made. You can switch to any user. This plan will take effect as long as it is not logout.
--------------------------------------------------------------------------------
[Y1] indicates executing the following command at every day. disabling the informix Service
[Y2] indicates that the command to start the informix service is executed at every day.
[Y3] indicates that the plan has been completed successfully.