Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I would like to know if Linux help me limit or fix the dial-up internet duration of connection for multiple phone lines (5 or 6) attached to 1 PC ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    5

    How to limit muliple dial-up connection duration


    Hi

    I would like to know if Linux help me limit or fix the dial-up internet duration of connection for multiple phone lines (5 or 6) attached to 1 PC server.
    For instance , I want to install 6 internal 56K modems (attached to 6 phone lines) on my PC and configure them in such a way that the 1st line connects to the internet 3h/day and disconnects automatically then the 2nd line connects for another 3h/day and disconnects, and so on for the 4 remaining lines

    Thanks

  2. #2
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    try something like

    0 0 * * * /usr/sbin/pppd -detach ttyS0 115200
    0 3 * * * /kill/previous/pppd
    0 3 * * * /usr/sbin/pppd -detach ttyS1 115200
    0 6 * * * /kill/previous/pppd
    0 6 * * * /usr/sbin/pppd -detach ttyS2 115200
    0 9 * * * /kill/previous/pppd
    0 9 * * * /usr/sbin/pppd -detach ttyS3 115200
    0 12 * * * /kill/previous/pppd
    0 12 * * * /usr/sbin/pppd -detach ttyS4 115200

    in your /etc/crontab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •