![]() |
OpenGnsys
1.1.1
|
Librería o clase System #. Más...
Ir al código fuente de este archivo.
Funciones | |
function | ogEcho () |
Muestra mensajes en consola y lo registra en fichero de incidencias. #. Más... | |
function | ogExecAndLog () |
Ejecuta un comando y guarda su salida en fichero de registro. #. Más... | |
function | ogGetCaller () |
Devuelve nombre del programa o script ejecutor (padre). #. Más... | |
function | ogHelp () |
Muestra mensaje de ayuda para una función determinda. #. Más... | |
function | ogRaiseError () |
Devuelve el mensaje y el código de error correspondiente. #. Más... | |
function | ogIsRepoLocked () |
Comprueba si el repositorio está siendo usado (tiene ficheros abiertos). #. Más... | |
function | ogCheckProgram () |
function | ogIsVirtualMachine () |
Descripción detallada
Documentación de las funciones
function ogCheckProgram | ( | ) |
Definición en la línea 298 del archivo System.lib.
Hace referencia a ogHelp() y ogRaiseError().
Referenciado por ogRestoreImageSyntax().

function ogEcho | ( | ) |
Muestra mensajes en consola y lo registra en fichero de incidencias. #.
ogEcho [str_logtype ...] [str_loglevel] "str_message" ...
#
- Parámetros
-
str_logtype tipo de registro de incidencias. # str_loglevel nivel de registro de incidencias. # str_message mensaje (puede recibir más de 1 parámetro. #
- Devuelve
Mensaje mostrado. #
- Atención
Si no se indica nivel de registro, solo muestra mensaje en pantalla. #
Si DEBUG="no", no se registran mensajes de error. #
- Nota
-
El nivel de ayuda
(help) no se registra en el fichero de incidencias. #
logfile = { log, command, session }; usa "log" si se indica nivel de registro. #
loglevel = { help, info, warning, error } #
- Versión
0.9 - Primera versión para OpenGnSys #
- Fecha
2009-07-23 #
- Versión
1.0.5 - Elegir fichero de log. #
- Fecha
2014-03-17 #
- Versión
1.1.0 - Posibilidad de no registrar mensajes en ficheros. #
- Fecha
- 2015-11-10
Definición en la línea 34 del archivo System.lib.
Referenciado por ogChangeRepo(), ogCheckSyncImage(), ogCreateFileImage(), ogListHardwareInfo(), ogMountFs(), ogSetPartitionActive(), ogUnmountFs() y ogWaitSyncImage().
function ogExecAndLog | ( | ) |
Ejecuta un comando y guarda su salida en fichero de registro. #.
ogExecAndLog str_logfile ... str_command ...
#
- Parámetros
-
str_logfile fichero de registro (pueden ser varios). # str_command comando y comandos a ejecutar. #
- Devuelve
Salida de ejecución del comando. #
- Nota
str_logfile = { LOG, SESSION, COMMAND } #
- Versión
1.0.6 - Primera versión para OpenGnSys #
- Fecha
- 2013-07-02
Definición en la línea 80 del archivo System.lib.
function ogGetCaller | ( | ) |
Devuelve nombre del programa o script ejecutor (padre). #.
ogGetCaller
#
- Parámetros
-
No. #
- Devuelve
str_name - Nombre del programa ejecutor. #
- Versión
0.10 - Primera versión para OpenGnSys. #
- Fecha
- 2011-01-17
Definición en la línea 130 del archivo System.lib.
function ogHelp | ( | ) |
Muestra mensaje de ayuda para una función determinda. #.
ogHelp ["str_function" ["str_format" ["str_example" ... ]]]
#
- Parámetros
-
str_function Nombre de la función. # str_format Formato de ejecución de la función. # str_example Ejemplo de ejecución de la función. #
- Devuelve
str_help - Salida de ayuda. #
- Nota
- Si no se indican parámetros, la función se toma de la variable
$FUNCNAME
# -
La descripción de la función se toma de la variable compuesta por
MSG_FUNC_$función
incluida en el fichero de idiomas. #
Pueden especificarse varios mensajes con ejemplos. #
- Versión
0.9 - Primera versión para OpenGnSys. #
- Fecha
- 2009-07-27
Definición en la línea 153 del archivo System.lib.
Referenciado por ogAddCmd(), ogAddRegistryKey(), ogAddRegistryValue(), ogAddToLaunchDaemon(), ogBoot(), ogBootMbrGeneric(), ogBootMbrXP(), ogCalculateChecksum(), ogCalculateFullChecksum(), ogChangeRepo(), ogCheckFs(), ogCheckIpAddress(), ogCheckProgram(), ogCheckStringInGroup(), ogCheckStringInReg(), ogCheckSyncImage(), ogCleanOs(), ogCompareChecksumFiles(), ogConfigureOgagent(), ogCopyEfiBootLoader(), ogCopyFile(), ogCreateBootLoaderImage(), ogCreateCache(), ogCreateDiskImage(), ogCreateFileImage(), ogCreateGptImage(), ogCreateGptPartitions(), ogCreateImage(), ogCreateImageSyntax(), ogCreateMbrImage(), ogCreatePartitions(), ogCreatePartitionTable(), ogCreateTorrent(), ogDeleteCache(), ogDeleteFile(), ogDeletePartitionTable(), ogDeleteRegistryKey(), ogDeleteRegistryValue(), ogDeleteTree(), ogDevToDisk(), ogDiskToDev(), ogDomainScript(), ogExtendFs(), ogFindCache(), ogFixBootSector(), ogFormatCache(), ogFormatFs(), ogGetArch(), ogGetBootMbr(), ogGetCacheSize(), ogGetCacheSpace(), ogGetDiskSize(), ogGetDiskType(), ogGetFsSize(), ogGetFsType(), ogGetGroupDir(), ogGetGroupName(), ogGetHivePath(), ogGetHostname(), ogGetImageCompressor(), ogGetImageInfo(), ogGetImageProgram(), ogGetImageSize(), ogGetImageType(), ogGetIpAddress(), ogGetLastSector(), ogGetMacAddress(), ogGetMountImageDir(), ogGetMountPoint(), ogGetNetInterface(), ogGetOsType(), ogGetOsUuid(), ogGetPartitionActive(), ogGetPartitionId(), ogGetPartitionSize(), ogGetPartitionsNumber(), ogGetPartitionTableType(), ogGetPartitionType(), ogGetPath(), ogGetRegistryValue(), ogGetRepoIp(), ogGetSerialNumber(), ogGetServerIp(), ogGetSizeParameters(), ogGetWindowsName(), ogGrubInstallMbr(), ogGrubUefiConf(), ogHidePartition(), ogIdToType(), ogInstallFirstBoot(), ogInstallLaunchDaemon(), ogInstallMiniSetup(), ogInstallRunonce(), ogIsDiskLocked(), ogIsFormated(), ogIsImageLocked(), ogIsMounted(), ogIsPartitionLocked(), ogIsReadonly(), ogIsRepoLocked(), ogIsWritable(), ogLinuxBootParameters(), ogListHardwareInfo(), ogListLogicalPartitions(), ogListPartitions(), ogListPrimaryPartitions(), ogListRegistryKeys(), ogListRegistryValues(), ogListSoftware(), ogLoadHiveWindows(), ogLockDisk(), ogLockImage(), ogLockPartition(), ogMakeGroupDir(), ogMcastReceiverFile(), ogMcastReceiverPartition(), ogMcastRequest(), ogMcastSendFile(), ogMcastSendPartition(), ogMcastSyntax(), ogMountCache(), ogMountCdrom(), ogMountFs(), ogNvramActiveEntry(), ogNvramAddEntry(), ogNvramDeleteEntry(), ogNvramGetCurrent(), ogNvramGetNext(), ogNvramGetOrder(), ogNvramGetTimeout(), ogNvramInactiveEntry(), ogNvramList(), ogReduceFs(), ogReduceImage(), ogRestoreBootLoaderImage(), ogRestoreDiskImage(), ogRestoreGptImage(), ogRestoreImage(), ogRestoreImageSyntax(), ogRestoreMbrImage(), ogSetPartitionActive(), ogSetPartitionId(), ogSetPartitionSize(), ogSetPartitionType(), ogSetRegistryValue(), ogSetWindowsName(), ogSetWinlogonUser(), ogTorrentStart(), ogTypeToId(), ogUcastReceiverPartition(), ogUcastSendFile(), ogUcastSendPartition(), ogUcastSyntax(), ogUnhidePartition(), ogUninstallLinuxClient(), ogUninstallWindowsClient(), ogUnlockDisk(), ogUnlockImage(), ogUnlockPartition(), ogUnmountAll(), ogUnmountCache(), ogUnmountFs(), ogUnmountImage(), ogUnsetDirtyBit(), ogUpdateCacheIsNecesary(), ogUpdateHiveWindows(), ogWindowsBootParameters() y ogWindowsRegisterPartition().
function ogIsRepoLocked | ( | ) |
Comprueba si el repositorio está siendo usado (tiene ficheros abiertos). #.
ogIsRepoLocked
#
- Parámetros
-
No. #
- Devuelve
Código de salida: 0 - bloqueado, 1 - sin bloquear o error. #
- Versión
0.10 - Primera versión para OpenGnSys. #
- Fecha
2011-01-17 #
- Versión
1.0.1 - Devolver falso en caso de error. #
- Fecha
- 2011-05-18
Definición en la línea 277 del archivo System.lib.
Hace referencia a ogHelp().

function ogIsVirtualMachine | ( | ) |
Definición en la línea 332 del archivo System.lib.
function ogRaiseError | ( | ) |
Devuelve el mensaje y el código de error correspondiente. #.
ogRaiseError [str_logtype ...] int_errcode ["str_errmessage" ...]
#
- Parámetros
-
str_logtype tipo de registro de incidencias. # int_errcode código de error. # str_errmessage mensajes complementarios de error. #
- Devuelve
str_message - Mensaje de error, incluyendo las funciones relacionadas. #
- Atención
No definidas #
- Nota
Mensajes internacionales del fichero de idiomas. #
- Versión
0.9 - Primera versión para OpenGnSys. #
- Fecha
2009-07-21 #
- Versión
- 1.0.5 - Muestra en el mensaje todas las funciones relacionadas (separadas por <-). #
- Fecha
- 2014-03-17
Definición en la línea 188 del archivo System.lib.
Referenciado por ogAddCmd(), ogAddRegistryKey(), ogAddRegistryValue(), ogAddToLaunchDaemon(), ogBoot(), ogBootMbrGeneric(), ogBootMbrXP(), ogCalculateChecksum(), ogCalculateFullChecksum(), ogChangeRepo(), ogCheckFs(), ogCheckIpAddress(), ogCheckProgram(), ogCheckStringInGroup(), ogCheckStringInReg(), ogCheckSyncImage(), ogCleanOs(), ogConfigureOgagent(), ogCopyEfiBootLoader(), ogCopyFile(), ogCreateBootLoaderImage(), ogCreateCache(), ogCreateDiskImage(), ogCreateFileImage(), ogCreateGptImage(), ogCreateGptPartitions(), ogCreateImage(), ogCreateImageSyntax(), ogCreateInfoImage(), ogCreateMbrImage(), ogCreatePartitions(), ogCreatePartitionTable(), ogCreateTorrent(), ogDeleteCache(), ogDeleteFile(), ogDeletePartitionTable(), ogDeleteRegistryKey(), ogDeleteRegistryValue(), ogDeleteTree(), ogDevToDisk(), ogDiskToDev(), ogDomainScript(), ogExtendFs(), ogFixBootSector(), ogFormatCache(), ogFormatFs(), ogGetBootMbr(), ogGetCacheSize(), ogGetCacheSpace(), ogGetDiskSize(), ogGetDiskType(), ogGetFsSize(), ogGetFsType(), ogGetGroupDir(), ogGetHivePath(), ogGetImageCompressor(), ogGetImageInfo(), ogGetImageProgram(), ogGetImageSize(), ogGetImageType(), ogGetLastSector(), ogGetMountImageDir(), ogGetMountPoint(), ogGetOsUuid(), ogGetPartitionActive(), ogGetPartitionId(), ogGetPartitionSize(), ogGetPartitionsNumber(), ogGetPartitionTableType(), ogGetPartitionType(), ogGetPath(), ogGetRegistryValue(), ogGetSizeParameters(), ogGetWindowsName(), ogGrubInstallMbr(), ogGrubUefiConf(), ogHidePartition(), ogIdToType(), ogInstallFirstBoot(), ogInstallLaunchDaemon(), ogInstallMiniSetup(), ogInstallRunonce(), ogLinuxBootParameters(), ogListLogicalPartitions(), ogListPartitions(), ogListRegistryKeys(), ogListRegistryValues(), ogListSoftware(), ogLoadHiveWindows(), ogLockDisk(), ogLockImage(), ogLockPartition(), ogMakeGroupDir(), ogMcastReceiverFile(), ogMcastReceiverPartition(), ogMcastRequest(), ogMcastSendFile(), ogMcastSendPartition(), ogMcastSyntax(), ogMountCache(), ogMountCdrom(), ogMountFirstFs(), ogMountFs(), ogNvramActiveEntry(), ogNvramAddEntry(), ogNvramDeleteEntry(), ogNvramGetCurrent(), ogNvramGetNext(), ogNvramGetOrder(), ogNvramGetTimeout(), ogNvramInactiveEntry(), ogNvramList(), ogReduceFs(), ogReduceImage(), ogRestoreBootLoaderImage(), ogRestoreDiskImage(), ogRestoreGptImage(), ogRestoreImage(), ogRestoreImageSyntax(), ogRestoreMbrImage(), ogSetPartitionActive(), ogSetPartitionId(), ogSetPartitionSize(), ogSetPartitionType(), ogSetRegistryValue(), ogSetWindowsName(), ogSetWinlogonUser(), ogTorrentStart(), ogTypeToId(), ogUcastReceiverPartition(), ogUcastSendFile(), ogUcastSendPartition(), ogUcastSyntax(), ogUnhidePartition(), ogUninstallLinuxClient(), ogUninstallWindowsClient(), ogUnlockDisk(), ogUnlockImage(), ogUnlockPartition(), ogUnmountAll(), ogUnmountCache(), ogUnmountFs(), ogUnmountImage(), ogUnsetDirtyBit(), ogUpdateCacheIsNecesary(), ogWaitSyncImage(), ogWindowsBootParameters() y ogWindowsRegisterPartition().
Generado por TracDoxygen 0.7.5 &
