-
Arrrrgggg....my script won't run from the desktop!
This is probably one of those newbie problems that will seem ridiculous once I start to understand what's going on. I want to run the following script from the KDE desktop (I've installed knoppix on my HD). I simply want to click on it and have it run:
Code:
#!/bin/sh
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=hot authtype=opensystem
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=fa:fb:fc:fd:fe
sudo ifconfig wlan0 up
sudo pump -i wlan0
echo done!
I've saved it to my desktop as hotNetwork.sh, and I've changed the permissions to be executable. When I click on it, nothing happens, and it doesn't run the commands in the script. Help?
-Tofer
p.s. I also tried assigning it to open up with "sh" or "bash" via the little wrench tool in the properties box, but that doesn't help.
-
Ah. Paths. It's all about paths, isn't it? I put in the correct paths (why can't bash figure them out??) as so, linked everything correctly to a shortcut, and it's fine now:
Code:
#!/bin/sh
/sbin/wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
/sbin/wlanctl-ng wlan0 lnxreq_autojoin ssid=hot authtype=opensystem
/sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=fa:fb:fc:fd:fe
sudo /sbin/ifconfig wlan0 up
sudo /sbin/pump -i wlan0
echo done!
Grr.
-Tofer
[/code]
Similar Threads
-
By bob58 in forum General Support
Replies: 10
Last Post: 11-29-2004, 11:53 PM
-
By bob58 in forum General Support
Replies: 2
Last Post: 11-26-2004, 07:25 AM
-
By fabriloup in forum General Support
Replies: 1
Last Post: 09-13-2003, 10:28 AM
-
By lindros in forum General Support
Replies: 10
Last Post: 07-24-2003, 08:26 PM
-
By punk000 in forum General Support
Replies: 3
Last Post: 02-26-2003, 07:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Compaq 242506-001 Netelligent 100 FDDI DAS Fiber SC PCI Network Adapter Vintage
$249.00

Vintage HP 21MX 1000 M-Series Minicomputer Chassis Backplane Parts AS-IS
$228.19

Vintage Intel PC Camera Pack USB CICP3 825118 NOS Open Box Complete 2000
$39.99

Lot of 2 Vintage Plextor PX-43CS SCSI CD-ROM Caddy Drives + 4 Caddies Used
$55.99

Vintage Computer Peripherals Inc. Ramsack III ISA Memory Expansion 16bit 8 SIMM
$85.00

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot
$316.95

vintage Motherboard Socket 370 with Celeron 1.30 Ghz 256MB
$62.99

MicroMac Technology ThunderCachePro 50MHz Accelerator FPU Vintage Mac Boxed
$750.00

vintage Gateway motherboard, socket 370 1ghz cpu, 256mb ram, cables, power switc
$62.99

Vintage Teac FD-505 5.25" 3.5" Combo Drive 19307571-00
$199.99