cmdlist

Package: WA2L/edrc 1.5.57
Section: Maintenance Commands (1m)
Updated: 19 February 2024
Index Return to Main Contents

 

NAME

cmdlist - list all WA2L/edrc commands

 

SYNOPSIS

edrc/bin/cmdlist [ -h ]

cmdlist [ -l ] [ selection ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

list all commands available in the WA2L/edrc package providing additional credential information.

A user of the WA2L/edrc package is advised to use the usage(1) command to get a list of all commands with a short usage.

The cmdlist command is intended to be used by a WA2L/edrc developer needing a quick information about implementation details.

Beside cmdlist, see also the binprobe command to check which binaries (TYPE: BIN, JBIN, LSCR, PSCR, YSCR) are able to run on the operating system where currently logged in.

The output of cmdlist consists of a table having the following columns:

COMMAND
command executable name.

TYPE
indicator of command realization (the same TYPE indicator is used in the compatibility(1) manual page):

BIN
machine binary file. A compiled source code.

JBIN
Java binary files. A compiled *.java source code.

SCR
Bourne shell script.

KSCR
Korn (or Bourne-Again) shell script.

LSCR
Lua script or program.

PSCR
Perl script.

YSCR
Python script.

LINK
symbolic link to an other command providing an alternate name for an executable file.

DIRECTORY
directory in which the command is located (see also: edrc(1m)):

bin (=edrc/bin/)
executables planned to be used mostly from the command line.

This directory is in $PATH when using edrc, shell or eshell.

lib (=edrc/lib/)
executables planned to be used mostly from within scripts because this commands often have the character of supporting functions and need often more initialization.

This directory is in $PATH when using edrc, shell or eshell.

sbin (=edrc/sbin/)
executables planned to be used from the command line.

This directory is not in $PATH when using edrc, shell or eshell.

pbin (=edrc/pbin/)
executables to be used mostly from the command line as normal (unprivileged) user but with elevated permissions. Depending on the system, commands in this directory use automatically sudo or pfexec to elevate the permissions without the need to manually call sudo command or pfexec command.

This directory is not in $PATH when using edrc, shell or eshell, but should be added to the $PATH of the normal (unprivileged) user.

STARTMODE
mode how the command is started. In general it can be distinguished between tree categories. However the user does not note a difference (and does not need to know the STARTMODE) when using the commands of any of the categories (sometimes such a behaviour is called "transparent"):

direct
direct start of a command where TYPE is SCR.

command
a command is started thru an alternate name (TYPE is LINK) provoking a different behaviour.

This method of calling the same command thru different names is a common concept on UNIX like systems to save implementation effort.

.name_wrapper
start thru a wrapper (see related name_wrapper(1) manual page), where before the real start additional checks are executed and specific settings are automatically applied:

.os_wrapper
start of operating system dependent binaries.

.java_wrapper
start Java binary code using a system-wide installed Java RE (JRE, Java Runtime Environment).

Note: There is no JRE distributed/bundled with WA2L/edrc and needs to be installed somewhere on the system.

.perl_wrapper
start Perl script using a system-wide installed Perl interpreter.

.python_wrapper
start Python script using a system-wide installed Python interpreter.

.ksh_wrapper
start Korn- or Bourne-Again (bash) script using ksh or bash depending on availability on the system.

.pf_wrapper
start executable using sudo or pfexec depending on availability/configuration on the system.

.daemon_wrapper
start a daemon-like executable.

daemon
start a daemon-like executable exceptionally not using the .daemon_wrapper.

OPERATINGSYSTEM
a list of operating systems (osid) for which distinct binaries are provided/bundled in/with WA2L/edrc.

This does not necessarily mean, that on operating systems for which the WA2L/edrc does not provide a binary file, the related command cannot be started from within WA2L/edrc.

For a description of this concept in WA2L/edrc, see os_wrapper(1) manual page.

 

OPTIONS

-h
usage message.

-l
provide list as CSV file format.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

4
usage displayed.

 

FILES

-

 

EXAMPLES

1) example cmdlist output:

COMMAND             TYPE  DIR   STARTMODE        OPERATINGSYSTEM
------------------  ----  ----  ---------------  ---------------
ansi2txt            BIN   lib   .os_wrapper
                                                 Linux
                                                 Linux-32
                                                 Linux-64
appendpdf           PSCR  lib   .perl_wrapper    *
apply2file          SCR   bin   direct           *
apply2sw_inventory  SCR   bin   direct           *
apprevision         SCR   lib   direct           *
approot             SCR   lib   direct           *
apropos             SCR   bin   direct           *
asup                SCR   pbin  .pf_wrapper      *
asup                LINK  bin   sat              *
banner              BIN   lib   .os_wrapper
                                                 Linux
                                                 Linux-32
                                                 Linux-64
                                                 Linux-ia
bget                PSCR  lib   .perl_wrapper    *
:
:
expect              BIN   lib   .os_wrapper
                                                 HP-11
                                                 HP-11i
                                                 HP-11ia
                                                 Linux
                                                 Linux-32
                                                 Linux-64
                                                 Linux-ia
                                                 Solaris
                                                 Solaris-x86
fcreate             BIN   lib   .os_wrapper
:
:
zmore               BIN   bin   .os_wrapper
                                                 HP-11
                                                 HP-11i
                                                 HP-11ia
                                                 Linux
                                                 Linux-32
                                                 Linux-64
                                                 Linux-ia
                                                 Solaris
                                                 Solaris-x86
(804)

 

SEE ALSO

edrcintro(1), binprobe(1m), cmdlist(1m), compatibility(1), daemon_wrapper(1), java_wrapper(1), ksh_wrapper(1), lua_wrapper(1), osid(3), os_wrapper(1), perl_wrapper(1), pf_wrapper(1), python_wrapper(1), usage(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

cmdlist was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2021 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 22:46:38 GMT, April 07, 2025