AIX

AIX

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

 View Only
  • 1.  Installing BASH on AIX ... newbie question ... did the RPM, now what?

    Posted Wed April 06, 2011 09:18 AM

    Originally posted by: WalterSnyder


    I was happy to learn that BASH is available as an RPM package for AIX.
    We have several install scripts in BASH that we want to run on AIX.

    I have located the package and "installed" it with RPM.
    Now what do I do? I tried typing "bash", or "chsh /usr/bin/bash" ...


  • 2.  Re: Installing BASH on AIX ... newbie question ... did the RPM, now what?

    Posted Wed April 06, 2011 10:35 AM

    Originally posted by: hdkutz


    Simply - use it!
    After Installation of RPM you should have
    /usr/bin/bash
    binary. This could be used in your Hash-Bang of your bash-Scripts.

    If you like the shell, add it to your login shells in /etc/security/login.cfg
    After that, you are able to use Bash as Login Shell.

    Happy bashing!

    Cheers,
    ku


  • 3.  Re: Installing BASH on AIX ... newbie question ... did the RPM, now what?

    Posted Wed April 06, 2011 11:39 AM

    Originally posted by: WalterSnyder


    Thanks! I can now run my bash scripts from within ksh command line. So at this point I am all set. My next question would be how to set up the bash login/terminal environment but I will tackle this later on. At the moment I have ksh environment the way I like it.


  • 4.  Re: Installing BASH on AIX ... newbie question ... did the RPM, now what?

    Posted Wed April 06, 2011 02:38 PM

    Originally posted by: ColombianJoker


    You can

    A. create an EMPTY $HOME/.bash_profile
    B. put
    && exec /usr/bin/bash --login
    in yout $HOME/.profile


  • 5.  Re: Installing BASH on AIX ... newbie question ... did the RPM, now what?

    Posted Wed April 06, 2011 02:41 PM

    Originally posted by: ColombianJoker


    The forums ATE my simbols !!!

    Put
    test -x "/usr/bin/bash" && exec /usr/bin/bash --login
    in your .profile