linux user group brescia

immagine del castello

Archivio della mailing list

da bash a binario

Alberto Federico Turelli alberto.turelli a atworkonline.it
Dom 16 Ott 2005 08:50:03 UTC
On Sun, 2005-10-16 at 10:26 +0100, Giorgio P.R. wrote:
> Ho scritto un bash script.
> 
> lo eseguo normalmente con ./script.sh
> 
> รจ possibile renderlo non leggibile?
> intendo,
> trasformarlo in un eseguibile binario in modo che
> con un
> more script.sh non si legga?
> ma naturalmente sia sempre eseguibile?

http://www.datsi.fi.upm.es/~frosal/

Dalla manpage di SHC (shc.html):

NAME
     shc - Generic shell script compiler


SYNOPSIS
     shc [ -e date ] [ -m addr ] [ -i iopt ] [ -x cmnd ]
     [ -l lopt ] [ -ACDhTv ] -f script


DESCRIPTION
     shc creates a stripped  binary  executable  version  of  the
     script specified with -f on the command line.

     The binary version will get a .x extension appended and will
     usually  be  a  bit  larger  in size than the original ascii
     code. Generated C source code is saved in a  file  with  the
     extension .x.c

Ciao.
-- 
Alberto Federico Turelli <alberto.turelli a atworkonline.it>
atwork di Alberto Turelli




Maggiori informazioni sulla lista Lug