On Wed, May 21, 2008 at 4:58 PM, gene golub <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Is that possible to convert ksh script into form which will be executable
> but will hide it's code?
ast-ksh and Solaris have shcomp to compile scripts:
NAME
shcomp - compile a shell script
SYNOPSIS
/usr/bin/shcomp [ options ] [infile [outfile]]
DESCRIPTION
Unless -D is specified, shcomp takes a shell script, infile, and creates
a binary format file, outfile, that ksh can read and execute with the
same effect as the original script.
Since aliases are processed as the script is read, alias definitions
whose value requires variable expansion will not work correctly.
If -D is specifed, all double quoted strings that are preceded by $ are
output. These are the messages that need to be translated to locale
specific versions for internationalization.
If outfile is omitted, then the results will be written to standard
output. If infile is also omitted, the shell script will be read from
standard input.
OPTIONS
-D, --dictionary
Generate a list of strings that need to be placed in a
message catalog for internationalization.
-n, --noexec Displays warning messages for obsolete or non-conforming
constructs.
-v, --verbose Displays input from infile onto standard error as it
reads it.
EXIT STATUS
0 Successful completion.
>0 An error occurred.
SEE ALSO
ksh(1)
IMPLEMENTATION
version shcomp (AT&T Research) 2003-03-02
author David Korn <[EMAIL PROTECTED]>
copyright Copyright (c) 1982-2008 AT&T Intellectual Property
license http://www.opensource.org/licenses/cpl1.0.txt
Irek
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users