Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

opal::action(3pm) [debian man page]

action(3pm)						User Contributed Perl Documentation					       action(3pm)

NAME
OpaL::action - Perl extension for easier handling of what information that should be presented when a action is made. SYNOPSIS
use OpaL::action qw(functionnames); No functions or variables are exported automaticly so you have to specify them here. DESCRIPTION
OpaL::action is a module to allow some better bugtracking and information to be sent to the user/developer. All functions are autoloaded so they will not be loaded into memory if you have not used them before. There are 5 different levels of the information/action. 1. critical 2. error 3. warning 4. message 5. debug FUNCTIONS
setQuitLevel You can set on what errorlevel the program should exit if an error occur. The default level is 2 and you canges it like this: USAGE: "setQuitLevel"(level); setErrorHandler You can set an alternative error handler function (no arguments). The default one is exit. USAGE: "setErrorHandler"(funcname); setDebugLevel You can set on what errorlevel the program should output messages if an error occur. The debug level indicates what type of information that should be presented to the user. USAGE: "setDebugLevel"(level); getQuitLevel You can set on what errorlevel the program should exit if an error occur. USAGE: $foo = "getQuitLevel"; getDebugLevel You can get the debuglevel on which the program should output messages, if an error occurs. USAGE: $foo = "getDebugLevel"; pdebug You can set on what errorlevel the program should exit if an error occur. With the pdebug method you can present information and mark it with a debuglevel using: USAGE: "pdebug"(level, "A sample informational text." [,funcref]); action With this function you can handle and print a message if a function does not work correctly. It will exit the program and print a message with the error level before if the action returns true and if the action_critic is lower or equal to the set error level. If the debug level is high enough it will present the message but without the trailing error message. USAGE: "action"(some_action, "A sample informational text about the action.", how_critical [,funcref]); The last parameter (how_critical) is optional. cmdaction Actually the same as action with the difference that it executes a external command instead. It is almost identical to action(system"a command to execute", ...); USAGE: "cmdaction"("a command to execute.", "A sample informational text about the action.", how_critical, how_quiet [,funcref]); The two last parameter (how_critical) is optional. The last parameter tells how quiet the executing command should be: 0 - extremely quiet (ie: >& /dev/null) 1 - quiet (ie: >& /dev/null) 2 - everything sent to stdout. =back AUTHOR
Ola Lundqvist <ola@inguza.com> SEE ALSO
perl(1). POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 415: You forgot a '=back' before '=head1' perl v5.10.1 2009-04-21 action(3pm)

Check Out this Related Man Page

S3QLCTRL(1)							       S3QL							       S3QLCTRL(1)

NAME
s3qlctrl - Control a mounted S3QL file system SYNOPSIS
s3qlctrl [options] <action> <mountpoint> ... where action may be either of flushcache, upload-meta, cachesize or log-metadata. DESCRIPTION
S3QL is a file system for online data storage. Before using S3QL, make sure to consult the full documentation (rather than just the man pages which only briefly document the available userspace commands). The s3qlctrl command performs various actions on the S3QL file system mounted in mountpoint. s3qlctrl can only be called by the user that mounted the file system and (if the file system was mounted with --allow-other or --allow-root) the root user. This limitation might be removed in the future (see issue 155). The following actions may be specified: flushcache Uploads all changed file data to the backend. upload-meta Upload metadata to the backend. All file system operations will block while a snapshot of the metadata is prepared for upload. cachesize Changes the cache size of the file system. This action requires an additional argument that specifies the new cache size in kB, so the complete command line is: s3qlctrl [options] cachesize <mountpoint> <new-cache-size> log Change the amount of information that is logged into ~/.s3ql/mount.log file. The complete syntax is: s3qlctrl [options] log <mountpoint> <level> [<module> [<module> ...]] here level is the desired new log level and may be either of debug, info or warn. One or more module may only be specified with the debug level and allow to restrict the debug output to just the listed modules. OPTIONS
The s3qlctrl command also accepts the following options, no matter what specific action is being invoked: --debug activate debugging output --quiet be really quiet --version just print program version and exit Hint: run s3qlctrl <action> --help to get help on the additional arguments that the different actions take. EXIT STATUS
s3qlctrl returns exit code 0 if the operation succeeded and 1 if some error occurred. SEE ALSO
The S3QL homepage is at http://code.google.com/p/s3ql/. The full S3QL documentation should also be installed somewhere on your system, common locations are /usr/share/doc/s3ql or /usr/local/doc/s3ql. COPYRIGHT
2008-2011, Nikolaus Rath 1.11.1 August 27, 2014 S3QLCTRL(1)
Man Page