Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I want to convert a shell script to a binary executable so that the contents of the shell script are not readable and could not be altered . I ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    1

    Lightbulb convert shell script to binary file

    Hi,

    I want to convert a shell script to a binary executable so that the contents of the shell script are not readable and could not be altered .

    I used shc (the shell script compiler) , but shc is not working in cygwin.
    I am using Cygwin as the linux simulator .
    Can anybody please help!

    Regards,

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    You could just chmod 700 or something like that. If security is your issue, than that should solve it. Or chmod 711 if others do have to be able to execute the script, but not read/write it.
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Location
    India
    Posts
    16
    A query here...
    cygwin will have its 'bin' folder from which it launches all the executions right?
    So how about copyin the executable for 'shc' into the 'bin' (i suppose for this u must b the root)...
    Its just a flyin thought

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...