Execute a script file as an infx service. usageinfx script script execute a script required: script - the name of the script exampleRun the script /infx/local/script/sample/post-hot as an infx service. demo1@bobii:/home/informix>infx script script=sample/post-hot removing storage pool entries execute function task('storagepool purge all') Storage pool purge successful notesFor more information on how to write scripts for infx, see custom scripts. To be executed the script
A service log file is created for the script, based on its path and name. In this case the log file would be: /infx/inst/demo1/logs/sample-post-hot/YYYY-MM-DD.log A new log file is created each day, and old files are cleaned up by the infx clean service. This script will be shown by the infx running command. The log file can be accessed by infx follow or infx view. The script can be terminated with the infx kill command. |