file status 参数:显示消息日志文件的状态(SQL 管理 API)

随同 admin()task() 函数,使用 file status 参数来指定一 online、ON-Bar 活动或 ON-Bar 调试消息日志文件的状态。

语法

元素 描述 关键考虑
file_path online、ON-Bar 活动或 ON-Bar 调试消息日志文件的完全路径名。  

示例

下列示例展示您可用来显示 /usr/gbasedbt/online.log 文件状态的参数:

execute function task("file status", "/usr/gbasedbt/online.log");

然后,服务器显示如下信息:

(expression)  File name          = /tmp/x
              Is File            = 1
              Is Directory       = 0
              Is Raw Device      = 0
              Is Block Device    = 0
              Is Pipe            = 0
              File Size          = 554
              Last Access Time   = 11/29/2010 21:55:02
              Last Modified Time = 11/29/2010 21:51:45
              Status Change Time = 11/29/2010 21:51:45
              User Id            = 200
              Group id           = 102
              File Flags         = 33206