file status argument: Display the status of a message log file (SQL administration API)

Use the file status argument with the admin() or task() function to specify the status of an online, ON-Bar activity, or ON-Bar debug message log file.

Syntax


1  EXECUTE FUNCTION
1 admin
1 task
2  ( "file status" , " file_path "
2  ) ;
Element Purpose Key considerations
file_path Full path name for the online, ON-Bar activity, or ON-Bar debug message log file.

Example

The following example shows the argument that you can use to display the status of the /usr/informix/online.log file:

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

The server then displays information such as:

(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