-
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

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC
$175.00

Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026
$12.99

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$115.00

Start9 Server Pure 32GB 4TB Intel i7 Node StartOS — Box + PSU
$649.00

All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95

ZimaBoard 2 1664 Home Server 16GB
$350.00

Brand New Genuine Red Hat Enterprise Linux AS (Advanced Server) Version 3
$39.99

Novell SUSE Linux Enterprise Server 9, Linux Professional 8.2 / 9.1 — 3 DVD Set
$58.00

Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP
$299.00

SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA
$284.99