Results 1 to 8 of 8

Thread: How to add GUI to command line

  1. #1
    Just burned his ISO Jase21's Avatar
    Join Date
    Oct 2007
    Posts
    23

    Default How to add GUI to command line

    Hello,

    My problem:
    Suppose that there is no GUI front-end to a tool say nmap (nmap has a gui front-end, but lets assume that it doesn't) then, how can I make a gui to the various commands in nmap.
    There are various flags (and I could make a check box to add each) but how to connect(communicate) with the command line.

    Another example:
    Suppose the windows telnet thing.
    I need a gui that have an address field, port field, and a connect button.
    When I press connect it should map to
    o (address) (port number)
    o 192.168.1.1 23

    Which programming language and libraries are to be used.
    (Rapid to build)
    I hope the questions are clear.
    Please help.
    Thank You very much.
    ..lost in silence™

  2. #2
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    I would suggest getting into something like a netbeans environment. You can code GUIs in almost any language. You need to decide qt or gtk. Python has a some nice front end tools. Sounds like you dont know much about programming though. Honestly there is pretty much a GUI for every tool out there already.

  3. #3
    Just burned his ISO Jase21's Avatar
    Join Date
    Oct 2007
    Posts
    23

    Default

    Python suites well.
    Just give me a few idea on how to intergrate(map) the command line within the gui.
    ..lost in silence™

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    Quote Originally Posted by Jase21 View Post
    Python suites well.
    Just give me a few idea on how to intergrate(map) the command line within the gui.
    When creating the gui you just link the buttons or check box's or whatever to shell commands.

    You may need something simpler like this Anjuta Integrated Development Environment

  5. #5
    Just burned his ISO Jase21's Avatar
    Join Date
    Oct 2007
    Posts
    23

    Default

    Quote Originally Posted by pureh@te View Post
    When creating the gui you just link the buttons or check box's or whatever to shell commands.
    That is exactly what I wanted. Linking to shell command. Could you please elaborate it. Can you just give a sample code or point me to some tutorials.
    Thanks
    ..lost in silence™

  6. #6
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    Quote Originally Posted by Jase21 View Post
    That is exactly what I wanted. Linking to shell command. Could you please elaborate it. Can you just give a sample code or point me to some tutorials.
    Thanks
    What has google told you? I have provided more than enough search terms for you to complete your goal. Personally I rarely use anything but the command line, in fact I don't even start X unless I have to so I am most likely the wrong person to be asking about GUI code.

  7. #7
    Junior Member
    Join Date
    Jan 2010
    Location
    Canada
    Posts
    84

    Default

    for a basic checkbox gui its just some if thens deciding what is inside of a system() call... f.ex simple gui ccheckbox 1,2,3 command name is.... lol

    //Could be looped and done lots of other things with and check() is no existent.

    if (check(1)) {arg1 = "--lolarg1";}

    if (check(2)) {arg2 = "--lolarg2";}

    if (check(3)) {arg3 = "--lolarg3";}

    system(("lol %c %c %c",arg1,arg2,arg3));

  8. #8
    Junior Member
    Join Date
    Jul 2009
    Posts
    78

    Default

    putty is a graphical SSH, Telnet and Rlogin client for X. It is a
    direct port of the Windows SSH client of the same name.
    sreenshot:
    h x x p://img.informer.com/screenshots/8/8410_1.png
    [COLOR="RoyalBlue"][SIZE="2"]Nought's had, all's spent, ... Where our desire is got without content
    [/COLOR][/SIZE]

Posting Permissions

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