home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / sliphw.zip / homesrvd.cmd < prev    next >
OS/2 REXX Batch file  |  1995-10-02  |  918b  |  32 lines

  1. /* HOMESRVD.CMD
  2. SLIP server daemon 
  3. Put this file in \TCPIP\BIN on the home machine.
  4. Run this on the home machine to make it a SLIP server
  5.  
  6. Configuration: set the COM port speed in the Rexx variable below 
  7. */
  8. modemspeed  = '115200'
  9. modemhangup = 'ATH0S0=0'
  10. /***********************************************************/
  11. /* Set global vars */
  12. env = 'OS2ENVIRONMENT'                   /* Description of environment */
  13. etcpath = value('ETC',,env)                  /* Get env. var. ETC */
  14.  
  15. /* Set screen colors to blue on white */
  16. '@sc bw'
  17. '@cls'
  18. say ''
  19. say ''
  20. say 'SLIP server daemon is starting ...'
  21. say center('=',78,'=')
  22. say ''
  23.  
  24. /* When SLIP session ends slip.exe terminates. */
  25. /* It must be started over and over         */
  26. do forever
  27.    /* Start SLIP process and redirect output to logfile */
  28.    '@slip -exit 0 -f homesrv.cfg -hangup +++'modemhangup' -p -speed 'modemspeed
  29. end
  30.  
  31. exit 0
  32.