LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-18-2004, 12:16 PM   #1
Esid
LQ Newbie
 
Registered: Jul 2004
Location: Denmark
Distribution: fedora(labtop-workstation), gentoo(experimentation) and freebsd(server)
Posts: 8

Rep: Reputation: 0
Need exampel for frontend(gui) shell command (like iwconfig or ifconfig etc)


okay, i want to make my life a bit more easy :]

each time i wants to configure stuff about my wireless card i go to my shell and type tens of thousinds of lines.. or almost that much.

In the great spirit of easyness i would like to ask if anyone could produce a exampel i can look at, so i can figure out how to do this

a exampel that could do the next things would be great -

have ifconfig as the basic command
do stuff like ifconfig $ethX $ip $promisc($-promisc) and orther options like that (where $ indicates the vars that can be altered in a box etc)
-
just to make a exampel more so it sould not be misunderstood right!

iwconfig $ethX essid(could be indicatet by a radiobutton) $essidname
iwconfig $ethX mode(radiobotten again maybe?) monitor(a list to pick from $monitor managed etc)



i hope i am clear and you understand what i am trying to explain and ask for

best wishes.

 
Old 08-19-2004, 12:28 AM   #2
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Hey its simple you Why don't you write a script for that, May be you want different options each time so you can build a GUI for that. And i think sending you such an example will be dificult for you to go with your modifications and if you do it yourself, It would be a lot more simple.
Hope you have got a little knowledge of C++. Just open the QT Designer, make a new wedget (gui), and drag drop some push buttons and radio buttons and all that stuff and declare a few slots for them. then save them and open the kdevelope and give the implementation of those slots. Its simple.
How to do it?? just go to www.kde.org and see the tutorial of QT Designer wih Kdevelope (I Think its in documentation section), Anyway in this they have given an example to make gui step by step and very eassy.
When you click the OK button in your GUI, your GUI will just have to make an script file with your selected options and then you can use, "system" command to execute that script.
 
Old 08-19-2004, 07:24 PM   #3
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 187

Rep: Reputation: 30
If you just want to put a GUI to your script in a quick and simple way ... you can use Xdialog, zenity, gdialog, dialog, etc. Go to freshmeat.net and search for zenity or Xdialog.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig and iwconfig does not display wifi info powah Linux - Wireless Networking 3 08-21-2005 07:16 PM
ifconfig & iwconfig do not work Koneko Linux - Newbie 3 08-06-2005 10:04 PM
ifconfig vs iwconfig danjmw Linux - Wireless Networking 3 12-20-2004 04:41 PM
can't use iwconfig, iwlist, ifconfig as user marlor Slackware 6 10-18-2004 04:27 PM
iwconfig and ifconfig not working t3kops Fedora 1 07-17-2004 01:35 PM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration