19.1.4 Notes on using scripts
- <Structure of this section>
(1) About Your Working Directory
If you frequently access files, use the following working directory located on RAM disk/memory:
Directory name |
Capacity |
---|---|
/opt/script # |
16MB |
- #
-
When the device is restarted, the files under it are deleted.
(2) Operation Verification
Before using scripted operation, be sure to verify the operation based on the usage status of CPU, memories, and other device resources. This is assumed to be used in the actual environment.
(3) Displayed in operation-command show logging
If the log of a command executed by a script is hidden by the operation command show logging, an error in a command that is critical to operation may be missed when the log is checked. For this reason, we recommend the following actions:
-
When executing important commands, they are temporarily displayed.
-
Create a script that outputs a message when the command execution results in an error.
(4) Notes on using the operation-command set clock
Timer monitoring (cron timer) is managed using the time of the device. Therefore, if the time is changed using the operation command set clock, the event generation cycle may change depending on the time of the change, or multiple events may occur within a short time. After that, the event will be generated normally according to the timer monitoring period.