AIX

AIX

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

 View Only
  • 1.  AIX COMMAND

    Posted Fri August 24, 2007 05:05 AM

    Originally posted by: SGLFORUM


    I am writing a shell script for my backup. I feel that instead of user entering the backup type for input, it would be better if he select the line from the list and pass this as backup type (same as smitty).

    Is there any AIX command available or a way out?


  • 2.  eh?

    Posted Fri August 24, 2007 11:02 AM

    Originally posted by: nagger


    Sorry, I might have missed the real point of your question.

    Why doesn't your shell script
    1) output a list of options
    2) ask the user to select the number next to the option
    3) read the number back from the user input
    then do the selected type of backup via the "case" ksh command ?

    If you were hoping for a smitty like user interface via a command?
    • ha ha ha ha
    Although, you can write new smitty panels, the details are in the AIX manuals.

    ta N


  • 3.  Re: AIX COMMAND

    Posted Fri August 24, 2007 11:16 AM

    Originally posted by: orphy


    "ha ha ha ha" is right! We got some customized ODMs here for stuff
    but I don't feel like debugging it when it breaks nowadays so I started
    investigating Roles and it seems to work for our needs at the moment.

    You might look into the ManageBackup role to see if it fit your needs.

    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.security/doc/security/authorizations_overview.htm

    Besides what Nigel mentioned, you can always write something using Curses
    but that's sooo yesterday!
    Orphy