steptail.com

If I try to fail, but succeed, which one did I do?

User Tools

Site Tools


guides:virtual_modem:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
guides:virtual_modem:script [2020-03-04 04:46]
omolini
guides:virtual_modem:script [2020-03-05 05:18]
omolini
Line 17: Line 17:
 # VMODEM - Virtual Modem bootstrap # VMODEM - Virtual Modem bootstrap
 # -------------------------------- # --------------------------------
-# Oliver Molini ​2019+# Oliver Molini ​2020
 # #
 # Billy Stoughton II for bug fixes and contributions # Billy Stoughton II for bug fixes and contributions
Line 24: Line 24:
 # https://​creativecommons.org/​licenses/​by-nc-sa/​4.0/​ # https://​creativecommons.org/​licenses/​by-nc-sa/​4.0/​
  
-# Tested working out of box with the following ​host configurations:​+# Tested working out of box with the following ​client ​configurations:​
 # #
 # o Standard VT100 terminal # o Standard VT100 terminal
Line 35: Line 35:
 #   - Trumpet Winsock #   - Trumpet Winsock
 # #
-# o Microsoft Windows 95+# o Microsoft Windows 95 OSR 2.5 + DUN 1.4
 #   - Generic #   - Generic
 #     - Standard 28800 bps Modem #     - Standard 28800 bps Modem
Line 49: Line 49:
  
 # Script version # Script version
-vmodver=1.4.1+vmodver=1.4.2
  
 # CONFIGURATION # CONFIGURATION
Line 226: Line 226:
         number=`echo $seq |tr -dc '​0-9'​`         number=`echo $seq |tr -dc '​0-9'​`
         if [ ! -z "​$number"​ ]; then         if [ ! -z "​$number"​ ]; then
-          if [[ $resultverbose == 1 ]]; then sendtty "​RINGING";​ fi+          if [[ $resultverbose == 1 ]]; then sendtty "​RINGING"​; sleep 1; fi
           if [ -f "​$number.sh"​ ]; then           if [ -f "​$number.sh"​ ]; then
             if [[ $resultverbose == 1 ]]; then sendtty "​CONNECT $baud";​ else sendtty "​1";​ fi             if [[ $resultverbose == 1 ]]; then sendtty "​CONNECT $baud";​ else sendtty "​1";​ fi
-            # Close serial port 
-            exec 99>&​- 
             # Execute dialed script             # Execute dialed script
             /sbin/getty -8 -L $serport $baud $TERM -n -l "​./​$number.sh"​             /sbin/getty -8 -L $serport $baud $TERM -n -l "​./​$number.sh"​
             # Reset serial settings             # Reset serial settings
             ttyinit             ttyinit
-            # Reopen serial port 
-            exec 99<>/​dev/​$serport 
             result=3             result=3
           else           else
Line 316: Line 312:
  
 When Trumpet Winsock is in PPP mode, by default it will expect the following output after dialing the ISP's number and establishing a connection: ​ When Trumpet Winsock is in PPP mode, by default it will expect the following output after dialing the ISP's number and establishing a connection: ​
-  * A username prompt, matched by the text "​sername:"​ +  * A username prompt, matched by Trumpet with the text "​sername:"​ 
-  * A password prompt, matched by the text "​ssword:"​ +  * A password prompt, matched by Trumpet with the text "​ssword:"​ 
-  * A command prompt, matched by the text ">"​+  * A command prompt, matched by Trumpet with the character ​">"​
  
 This script has been tested with the default installation of Trumpet Winsock 3.0 revision D with PPP mode switched on. This script has also been tested with the default dial-up utility of Windows 95 and Windows 98 with PPP enabled. ​ This script has been tested with the default installation of Trumpet Winsock 3.0 revision D with PPP mode switched on. This script has also been tested with the default dial-up utility of Windows 95 and Windows 98 with PPP enabled. ​
guides/virtual_modem/script.txt · Last modified: 2022-12-28 03:32 by omolini