Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Activating internet from remote??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hotpotato
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 81

PostPosted: Tue Mar 04, 2003 9:46 am    Post subject: Activating internet from remote?? Reply with quote

Hi,

What i'm trying to do is make my computer so I can dial it up from a normal telephone line, enter PIN code e.t.c. then choose an option which will execute a script that will dial my internet connection.

I have set everything up fine using vgetty and I can get it to execute scripts using the phone... The only problem is:

The phoneline I dial in on, is the phoneline the internet needs to dialout on.

So is there anything that I could put in the script (or program/command) that would holdoff the script for say 30secs, so I can hangup the phone before pppd tries to dialout??????

Any feedback would be much appriciated.

Thanks,
HotPotato
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Tue Mar 04, 2003 12:54 pm    Post subject: Reply with quote

Ofcourse. One very easy way is to run it in a screen-session.

So you login, start a screen-session, issue a delay and have the script run after the delay:
Code:

remotebox~$ screen
remotebox~$ sleep 30 && ./startscript
[press ctrl-a, d]
Screen detached
remotebox~$ exit


The screensession will stay, and after 30 seconds ./startscript will be executed.

Another way is to have the script delay by itself and run it using nohup:
Code:

remotebox~$ nohup ./startscript &
remotebox~$ exit
Back to top
View user's profile Send private message
hotpotato
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 81

PostPosted: Wed Mar 05, 2003 7:42 pm    Post subject: Thanks! Reply with quote

Cheers,

Using nohup method it works flawlessly.

Thanks,
HotPotato.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum