PDA

View Full Version : running shell script



splittik
03-20-2005, 10:48 PM
hey, i've decided to load up my ndiswrapper driver a different way using this .sh script


#!/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?

Dave_Bechtel
03-22-2005, 07:38 AM
--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.)


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


#!/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?