Results 1 to 2 of 2

Thread: running shell script

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Mar 2005
    Posts
    10

    running shell script

    hey, i've decided to load up my ndiswrapper driver a different way using this .sh script

    Code:
    #!/bin/sh
    sudo ndiswrapper -e net8180
    sudo ndiswrapper -i /home/splittik/wirelessdrive/net8180.inf
    sudo modprobe ndiswrapper
    sudo ndiswrapper -m
    sudo iwconfig wlan0 mode Managed
    sudo iwconfig wlan0 essid default
    sudo ifconfig wlan0 up
    sudo pump -i wlan0
    when i open the konsole and run the file from there, it runs the script and everything works out fine, but when i simply click on the file or put it in my Autostart folder it doesn't run it at all(or it doesn't work?). Why?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: running shell script

    --You might as well take out all the "sudo" calls, and just run it as root. Or call the script itself using sudo.

    --As far as KDE goes, right-click on the file and see if the Execute permissions are set. (I don't use KDE personally; if it works from Konsole, I'd just do it that way.)

    Quote Originally Posted by splittik
    hey, i've decided to load up my ndiswrapper driver a different way using this .sh script

    Code:
    #!/bin/sh
    sudo ndiswrapper -e net8180
    sudo ndiswrapper -i /home/splittik/wirelessdrive/net8180.inf
    sudo modprobe ndiswrapper
    sudo ndiswrapper -m
    sudo iwconfig wlan0 mode Managed
    sudo iwconfig wlan0 essid default
    sudo ifconfig wlan0 up
    sudo pump -i wlan0
    when i open the konsole and run the file from there, it runs the script and everything works out fine, but when i simply click on the file or put it in my Autostart folder it doesn't run it at all(or it doesn't work?). Why?

Similar Threads

  1. shell script to automount a USB upon insertion
    By ecliu in forum General Support
    Replies: 0
    Last Post: 02-20-2009, 11:14 AM
  2. shell script (printer configuration)
    By migs_sison in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 02-24-2006, 01:21 AM
  3. Run a shell script after booting
    By mpweber77 in forum Customising & Remastering
    Replies: 1
    Last Post: 08-01-2005, 06:18 AM
  4. Help with shell script + startup
    By niXnoob in forum General Support
    Replies: 3
    Last Post: 10-06-2004, 04:56 AM
  5. Anybody knows how to deamonize a shell script ?
    By ktheking in forum General Support
    Replies: 4
    Last Post: 06-29-2003, 12:34 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
  •  


Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor picture

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor

$114.99



(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT) picture

(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT)

$700.00



INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH picture

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH

$179.99



Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD picture

Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD

$27.99



AMD Ryzen 5 5500 Processor ( read Description) picture

AMD Ryzen 5 5500 Processor ( read Description)

$59.00



Intel Xeon E3-1230 v3 SR153 3.3GHz Quad Core LGA 1150 CPU Processor picture

Intel Xeon E3-1230 v3 SR153 3.3GHz Quad Core LGA 1150 CPU Processor

$14.49



Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel SR3XE Core i5-8500 3.0GHz 9M Socket 1151 6-Core CPU Processor *Tested* picture

Intel SR3XE Core i5-8500 3.0GHz 9M Socket 1151 6-Core CPU Processor *Tested*

$32.99



AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad picture

AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad

$355.99



AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1) picture

AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1)

$189.00