ONO::Core::Kernel

ONO::Core::Kernel is responsible for low level communication with the host operating system.

Using this module in production projects should be avoided whenever possible, try to use ONO::IO or other library / toolbox features instead.

Functions

exec();

Execute a UNIX command. This will pass to input to a UNIX shell, but no special characters will be allowed, which means that only very simple commands can be executed.

Note that you should NOT use this function on production systems, use ONO::IO's exec functions (there are several ones) instead.

ONO::Core::Kernel->exec( $exec );
returns: `$exec`

sendmail();

Returns the path to the UNIX sendmail script.

The path is detected outside of the function to speed up mod_perl systems.

ONO::Core::Kernel->sendmail( );

sys();

The sys function allows direct access to specific UNIX system data. It allows to read directories and certain logfiles, as well as to read and write files. Note that file and dir I/O is also available via ONO::Core::HostIO.

Note that you should NOT use this function on production systems, use ONO::IO's I/O tools or appropriate library / toolbox modules instead.

ONO::Core::Kernel->sys( $mode,$opts,$data );

vpath();

Return the path to the ONO installation's document root, this is usually called the "vpath" or "virtual path" on ONO systems.

This works for both CGI scripts and command line tools, so that higher level features can be used in both web scripts and cron scripts for example.

The vpath can also be set manually, using the following file inside the UNIX host /etc/apache2 directory (usually not necessary, and not working on systems with multiple virtual hosts):

/etc/apache2/ono_kernel_docroot.conf

Note that you should NOT use this function on production systems, use ONO::IO's vpath function instead.

ONO::Core::Kernel->vpath( );
returns: $vpath

Sub-Modules

none

Dependencies

Optional CPAN Modules

The following modules may be optional, but they are probably required for all features to work properly.

FindBin