.ksh_wrapper
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 26 February 2015
Index
Return to Main Contents
 
NAME
ksh_wrapper - wrap Korn- and Bourne Again Shell scripts in a Bourne shell
 
SYNOPSIS
edrc/bin/kshscript
->
.ksh_wrapper
edrc/lib/kshscript
->
.ksh_wrapper
edrc/sbin/kshscript
->
.ksh_wrapper
edrc/lib/kshell
 
AVAILABILITY
WA2L/edrc
 
DESCRIPTION
wrap Korn- and Bourne Again shell scripts to avoid using
#!/bin/ksh
in the magic key. However, due to the fact that some scripts need
Korn shell functionality either
ksh
or
bash
has to be installed in
/bin/,
/sbin/,
/usr/contrib/bin/
or
/usr/local/bin/.
Further
ksh
/
bash
locations can be configured in the config file
ksh_wrapper.cfg.
To start a new command thru the
.ksh_wrapper,
follow the following steps:
- 1.)
 - 
create a symlink to the new command in the
edrc/sbin/,
edrc/bin/
or 
edrc/lib/
directory depending on your needs:
[ /opt/edrc/bin ]
[ root@acme001 ][*edrc*/bash]: ln -s .ksh_wrapper new_cmd 
 - 2.)
 - 
install the ksh script in the
edrc/lib/ksh/
directory:
[ /opt/edrc/lib/ksh ]
[ root@acme001 ][*edrc*/bash]: vi new_cmd
[ /opt/edrc/lib/ksh ]
[ root@acme001 ][*edrc*/bash]: chmod 644 new_cmd
 -  
 - 
The command
edrc/lib/kshell
returns the path of the Korn- or Bourne Again shell available
on the system.
The path resolution and configuration file is the same as in
.ksh_wrapper.
 
 
OPTIONS
- edrc/lib/kshell
 - 
print path to 
ksh
or
bash.
 - edrc/bin/.ksh_wrapper
 - 
wrapper for 
ksh
/
bash
scripts in 
edrc/bin/.
 - edrc/lib/.ksh_wrapper
 - 
wrapper for 
ksh
/
bash
scripts in 
edrc/lib/.
 
 
ENVIRONMENT
-
 
EXIT STATUS
- 101
 - 
shell
(ksh or bash)
not found. If
ksh
or 
bash
is installed on the system and you get this error, add
the shell location in the configuration file
ksh_wrapper.cfg.
 - 102
 - 
the Korn-Shell script to be started that should be
located in 
lib/ksh/
does not exist.
 - 103
 - 
user calling the command has no permission to access/execute
the called
daemon_command.
 - 106
 - 
configuration file 
ksh_wrapper.cfg
does not exist.
 - 107
 - 
the 
.ksh_wrapper
was called directly.
 
 
FILES
- etc/ksh_wrapper.cfg
 - 
configuration file for the
.ksh_wrapper
command.
 - lib/ksh/
 - 
location of the wrapped Korn-/Bourne Again shell scripts. This
files should have the file permissions
644
to show, that those scripts must not be started
directly.
 
 
EXAMPLES
-
 
SEE ALSO
edrcintro(1),
bash(1),
cmdlist(1m),
daemon_wrapper(1),
ksh(1),
java_wrapper(1),
ksh_wrapper.cfg(4),
lua_wrapper(1),
ln(1),
osid(3),
os_wrapper(1),
perl_wrapper(1)
 
NOTES
-
 
BUGS
-
 
AUTHOR
ksh_wrapper was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
 
COPYRIGHT
Copyright © 2015
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.
This document was created by man2html
using the manual pages.
Time: 22:46:40 GMT, April 07, 2025