Results 1 to 2 of 2

Thread: Arrrrgggg....my script won't run from the desktop!

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    7

    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.

  2. #2
    Junior Member
    Join Date
    Dec 2004
    Posts
    7
    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

  1. help with menu script
    By bob58 in forum General Support
    Replies: 10
    Last Post: 11-29-2004, 11:53 PM
  2. help with simple script
    By bob58 in forum General Support
    Replies: 2
    Last Post: 11-26-2004, 07:25 AM
  3. Howto: Script to put the device shortcuts on the desktop
    By fabriloup in forum General Support
    Replies: 1
    Last Post: 09-13-2003, 10:28 AM
  4. Help with a script
    By lindros in forum General Support
    Replies: 10
    Last Post: 07-24-2003, 08:26 PM
  5. script
    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
  •  


Supermicro CSE-732 Mid-Tower Server Chassis w/ Supermicro X10DRi 2x Xeon E5-2620 picture

Supermicro CSE-732 Mid-Tower Server Chassis w/ Supermicro X10DRi 2x Xeon E5-2620

$325.00



HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS picture

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS

$199.00



Supermicro E200-8D Barebones Server Chassis Xeon D-1528 X10SDV-6C-TLN4F 2x10GbE picture

Supermicro E200-8D Barebones Server Chassis Xeon D-1528 X10SDV-6C-TLN4F 2x10GbE

$445.00



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



HP Proliant MicroServer HSTNS-5151 AMD Turion II Neo N40L CPU @ 1.50GHz 16Gb RAM picture

HP Proliant MicroServer HSTNS-5151 AMD Turion II Neo N40L CPU @ 1.50GHz 16Gb RAM

$174.99



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



HPE ProLiant MicroServer Gen10 Opteron X3421 32GB DDR4 Intel X550 10GbE No HDD picture

HPE ProLiant MicroServer Gen10 Opteron X3421 32GB DDR4 Intel X550 10GbE No HDD

$599.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On picture

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On

$450.00