View previous topic :: View next topic |
Author |
Message |
hotpotato Tux's lil' helper


Joined: 19 Jul 2002 Posts: 81
|
Posted: Tue Mar 04, 2003 9:46 am Post subject: Activating internet from remote?? |
|
|
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 |
|
 |
Sven Vermeulen Retired Dev


Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Tue Mar 04, 2003 12:54 pm Post subject: |
|
|
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 |
|
 |
hotpotato Tux's lil' helper


Joined: 19 Jul 2002 Posts: 81
|
Posted: Wed Mar 05, 2003 7:42 pm Post subject: Thanks! |
|
|
Cheers,
Using nohup method it works flawlessly.
Thanks,
HotPotato. |
|
Back to top |
|
 |
|
|
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
|
|