Find the answer to your Linux question:
Results 1 to 3 of 3
I would like to put a command to ring the system bell several times when a connection via PPP drops. Where/how can this be done using bash?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    PPP connection drop


    I would like to put a command to ring the system bell several times when a connection via PPP drops.
    Where/how can this be done using bash?

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    732
    Hi there,

    How do you establish the ppp connection? There may be a way to add a command to be executed on disconnect. Once we can hook the disconnect event there are is a beep package for Ubuntu so I'd expect there would be a similar command for your distribution.

    Let us know how you get on
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    PPP connection drop

    I am running Slackware 13.0 and using /usr/sbin/ppp-go (-off). I have looked at /etc/ppp and could not find a script to catch a modem response such as "connection dropped" or "hangup" etc.
    I have given up on this and seems like I must create a program to catch a set of modem responses on the ppp invoking terminal.

  4. $spacer_open
    $spacer_close

Posting Permissions

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