View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#1036
Originally Posted by James_Littler View Post
Hi, sorry if this has been covered, I can't find much through google so I thought I'd ask.

How do I string a few terminal commands together, so if for example, I was creating a widget to put my wireless card into monitor mode and I wanted to run the following
Code:
sudo gainroot
ifconfig wlan0 down
iwconfig wlan0 mode Monitor
ifconfig up
How would I do so?
I can get a single command to work, but how do I string it together.

Thanks
Like this?
http://talk.maemo.org/showpost.php?p...7&postcount=11
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post: