AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  How to compile ksh script?

    Posted Thu August 19, 2010 04:13 AM

    Originally posted by: SystemAdmin


    Hi,
    pls advice how to compile ksh script in aix.
    As i wrote some script to transfer payment,etc
    and i dont want other users in system to read
    the script content.
    #AIX-Forum


  • 2.  Re: How to compile ksh script?

    Posted Thu August 19, 2010 10:08 AM

    Originally posted by: orphy


    You don't compile ksh. If you have info within the script that you don't want others to see, look into the man page of chmod. Try 700. A better idea would be to figure out how to avoid putting those info in the script.
    Orphy
    #AIX-Forum


  • 3.  Re: How to compile ksh script?

    Posted Fri July 15, 2011 02:46 AM

    Originally posted by: romeo_ninov


    And one small remark: to be able to run shell script you should have rights to read it. So the absolute minimum is r-x rights
    #AIX-Forum


  • 4.  Re: How to compile ksh script?

    Posted Mon July 18, 2011 04:42 AM

    Originally posted by: MarkTaylor


    There is a generic script compiler called "shc" that should do the trick http://freshmeat.net/projects/shc/ you have to have a compiler installed and you have to compile "shc" from source (I could not find anything on perzl or an rpm for aix, but feel free to google it)
    HTH
    Mark Taylor
    #AIX-Forum