sudo in a shell script
Behrang Saeedzadeh
behrangsa at gmail.com
Fri Jul 15 09:54:14 UTC 2005
By the way,
When I rmmod/modprobe ipw2200 the ethernet indicator
at the top of the screen does not turn on the network
traffic lights anymore.
I mean, I recieve/send bytes but the network indicator
stays turned off as no bytes are recieved/sent through
the card.
Any ideas how I can solve this as well?
Best Regards,
Behi.
On Fri, 15 Jul 2005 14:20:21 +0430, Behrang Saeedzadeh
<behrangsa at gmail.com> wrote:
> Hi
>
> I want to write a shell script like this:
>
> sudo rmmod ipw2200
> sudo modprobe ipw2200
>
> I've to this from time to time whenever my
> wireless network connection is lost as Ubuntu
> does not try to recover it (unlike Windoze).
>
> Are there any options available for sudo for
> passing the password directly to it instead
> of waiting for the prompt?
>
> In other words, I like something like this:
>
> sudo -pass mypassword rmmod ipw2200
> sudo modprobe ipw2200
>
> Thanks in advance,
--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
Using Opera's revolutionary e-mail client
More information about the ubuntu-users
mailing list