I have a shell script menu (ksh) on solaris and want to make it gui base.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mmanjul
    New Member
    • Feb 2007
    • 7

    I have a shell script menu (ksh) on solaris and want to make it gui base.

    Plese advise on the following :

    1. Designing a GUI based menu ?
    2. How to call different shell scripts as different options of the menu ?
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by Mmanjul
    Plese advise on the following :

    1. Designing a GUI based menu ?
    2. How to call different shell scripts as different options of the menu ?
    have a look at the Java GUI totorial
    This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components


    you can execute shell scripts using the Runtime.exec() method, e.g. to run the Unix ls command
    Code:
    Runtime systemShell = Runtime.getRuntime();
    Process shellOutput = systemShell.exec("ls");
    int exitVal = shellOutput.waitFor();

    Comment

    Working...