ockermod.ini 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ; File CKERMOD.INI, Sample C-Kermit 7.0 customization file.
  2. ;
  3. ; This file, which is ONLY A SAMPLE, should be called:
  4. ;
  5. ; .mykermrc (UNIX, OS-9, Aegis, BeBox, Plan 9)
  6. ; CKERMOD.INI (VMS, OpenVMS, AOS/VS, OS/2, Amiga, Atari ST)
  7. ; ckermod.ini (Stratus VOS)
  8. ;
  9. ; This file is executed automatically by the standard C-Kermit initialization
  10. ; file, CKERMIT.INI (or .kermrc). This file is not executed by C-Kermit itself
  11. ; unless the initialization file is not found.
  12. ;
  13. ; MODify this file to suit your needs and preferences, and install it in your
  14. ; home directory. Or replace it entirely with a new file.
  15. ;
  16. ; The design of this sample customization file lets you fill in a section for
  17. ; each different operating system where you run C-Kermit.
  18. ;
  19. ; In UNIX, if you give this file execute permission and make sure the top
  20. ; line indicates the full path of the C-Kermit 7.0-or-later executable, you
  21. ; can execute this file directly, as if it was a shell script, except it is
  22. ; interpreted by Kermit rather than the shell. This lets you have as many
  23. ; different startup files as you like, each suited to a particular purpose.
  24. ;
  25. ; Authors: Christine Gianone, Frank da Cruz, Jeffrey Altman,
  26. ; The Kermit Project, Columbia University.
  27. ; Creation: 23 November 1992 for C-Kermit 5A(188).
  28. ; Modified: 30 June 1993 for edit 189.
  29. ; 04 October 1994 for edit 190.
  30. ; 17 April 1995 for edit 191.
  31. ; 6 September 1996 for version 6.0, edit 192.
  32. ; 1 January 2000 for version 7.0, edit 196.
  33. ; 14 October 2001 for version 8.0, edit 200.
  34. ECHO
  35. ECHO Executing SAMPLE C-Kermit customization file \v(cmdfile) for \v(system)...
  36. ECHO { Please edit this file to reflect your needs and preferences.}
  37. ECHO
  38. ;
  39. ; ... and then remove the ECHO commands above.
  40. COMMENT - Settings that apply to all the systems I use:
  41. ;
  42. set delay 1 ; I escape back quickly
  43. set dial display on ; I like to watch C-Kermit dial
  44. ; Dialing locale and method
  45. ;
  46. ; SET DIAL COUNTRY-CODE 1 ; Uncomment and replace with yours
  47. ; SET DIAL AREA-CODE 000 ; Uncomment and replace with yours
  48. ; SET DIAL LD-PREFIX 1 ; Uncomment and replace with yours
  49. ; SET DIAL INTL-PREFIX 011 ; Uncomment and replace with yours
  50. ; SET DIAL METHOD TONE ; Uncomment and replace with PULSE if necessary
  51. ; SET DIAL DIRECTORY ... ... ; List dialing directory files here
  52. if < \v(version) 600192 -
  53. stop 1 \v(cmdfile): C-Kermit 6.0.192 or later required.
  54. set take error on ; Make errors fatal temporarily
  55. check if ; Do we have an IF command?
  56. set take error off ; Yes we do, back to normal
  57. ; The ON_EXIT macro is executed automatically when C-Kermit exits.
  58. ; Define as desired.
  59. ;
  60. define ON_EXIT echo Returning you to \v(system) now.
  61. ; System-independent quick dialing macro. Depends on having the
  62. ; macros MYMODEM, MYPORT, and (optionally) MYSPEED defined in the
  63. ; system-dependent sections below.
  64. ;
  65. define MYDIAL {
  66. if not defined MYMODEM end 1 {\%0: Modem type not defined.}
  67. set modem type \m(MYMODEM)
  68. if fail end 1 {\%0: \m(MYMODEM): Unsupported modem type.}
  69. if not defined MYPORT end 1 {\%0: Communication port not defined.}
  70. set port \m(MYPORT)
  71. if fail end 1 {\%0: SET PORT \m(MYPORT) failed.}
  72. if defined MYFLOW set flow \m(MYFLOW)
  73. if fail end 1 {\%0: SET FLOW \m(MYFLOW) failed.}
  74. if defined MYSPEED set speed \m(MYSPEED)
  75. if fail end 1 {\%0: SET SPEED \m(MYSPEED) failed.}
  76. dial \%1\%2\%3\%4\%5\%6\%7\%8\%9
  77. end \v(status)
  78. }
  79. forward \v(system) ; Go execute system-dependent commands
  80. :UNIX ; UNIX, all versions...
  81. define MYPORT /dev/cua ; My dialing environment
  82. define MYMODEM usr ; Replace these by what you actually have
  83. define MYSPEED 57600
  84. ;
  85. ; If you want all your downloads to go to the same directory, no matter
  86. ; what your current directory is, uncomment and edit the following command:
  87. ;
  88. ; set file download-directory ~/download ; Download directory for UNIX
  89. ; Put other UNIX-specific commands here...
  90. end ; End of UNIX section
  91. :VMS ; VMS and OpenVMS
  92. define MYPORT TXA0: ; My dialing environment
  93. define MYMODEM usr ; Replace these by what you actually have
  94. define MYSPEED 57600
  95. ; set file download-directory [\$(USER).DOWNLOAD] ; Download directory for VMS
  96. ; Put other VMS-specific commands here...
  97. end ; End of VMS section
  98. :WIN32 ; Windows and OS/2 customizations...
  99. :OS/2
  100. define MYPORT COM1 ; My dialing environment
  101. define MYMODEM usr ; Replace these by what you actually have
  102. define MYSPEED 57600
  103. set command byte 8 ; Use 8 bits between Kermit and console
  104. set xfer char latin1 ; Use Latin-1 for text file transfer
  105. set term char latin1 ; And use Latin-1 during CONNECT mode
  106. ; set file download-directory C:\DOWNLOADS
  107. end
  108. :OS9/68K ; OS-9/68000
  109. define MYPORT /t3 ; My dialing environment
  110. define MYMODEM usr ; Replace these by what you actually have
  111. define MYSPEED 9600
  112. ; set file download-directory ~/downloads
  113. end ; End of OS-9 section
  114. :AOS/VS ; Data General AOS/VS
  115. define MYPORT @con3 ; My dialing environment
  116. define MYMODEM usr ; Replace these by what you actually have
  117. define MYSPEED 9600
  118. ; set file download-directory \v(home)DOWNLOADS
  119. end
  120. ; And so on, you get the idea...
  121. ; Fill in the sections that apply to you.
  122. :Stratus_VOS ; Stratus VOS
  123. :Amiga ; Commodore Amiga
  124. :Atari_ST ; Atari ST
  125. :Macintosh ; Apple Macintosh
  126. :unknown ; Others
  127. ; (End of CKERMOD.INI)