Arup Posted July 19, 2008 Share Posted July 19, 2008 Hi, I'm using OpenSuse 11.0. I've a Dataone broadband connection in bridged mode. I use Kinternet to manually connect to internet. I've a limited bandwith net connection which provides unlimited downloads between 2.00-8.00AM. I've tried to keep running my net connection and scheduling downloads in Ktorrent. But when kept idle, the connecion disconnects after sometime. I've entered Idle Time Out as 0 in DSL settings. Executing sudo -i and /sbin/ifup dsl0 from terminal starts the net. I've tried making a script as follows and running it using Kcron #!/bin/bash sudo -i /sbin/ifup dsl0 exit 0 I've removed password for sudo by using Yast also made the file executible from the properties. But this doesn't work. Now pls tell me why? ______________ Arup Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted July 19, 2008 Veteran Share Posted July 19, 2008 I am pretty sure you would need to do it like this: #!/bin/bash gksudo /sbin/ifup dsl0 is that what you were looking for? Link to comment Share on other sites More sharing options...
mitch00 Posted July 19, 2008 Share Posted July 19, 2008 mark, just wondering... why use gksudo and not plain old sudo? There's no password anyway, so it shouldn't make a difference, should it? Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted July 19, 2008 Veteran Share Posted July 19, 2008 I picked it because I have not really done much scripting, and I know how to make gksudo work. :unsure: Link to comment Share on other sites More sharing options...
Arup Posted July 20, 2008 Author Share Posted July 20, 2008 #!/bin/bashsudo -i /sbin/ifup dsl0 exit 0 But above when saved as a file (dsl.sh) and made executible does not starts net when run from terminal. whyyy?? ___________ Arup Link to comment Share on other sites More sharing options...
Recommended Posts