home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / duc10.zip / ducppp.cmd < prev    next >
OS/2 REXX Batch file  |  2002-12-31  |  449b  |  24 lines

  1. /*
  2.  * Scaffold for PPP termination handling (ducppp.cmd)
  3.  *
  4.  * Starts PPP and makes sure termination is registered in all cases.
  5.  */
  6.  
  7. parse arg connection ppp_args
  8.  
  9.  
  10. /* Set queue to one named for this connection */
  11.  
  12. call RXQueue 'Set', connection'Queue'
  13.  
  14.  
  15. /* Invoke PPP with passed parms piping stdout to connection queue */
  16.  
  17. '@ppp' ppp_args '| RXQueue' connection'Queue'
  18.  
  19.  
  20. /* Indicate PPP ended on queue */
  21.  
  22. queue '[ENDED]'
  23.  
  24.