Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !TCPIPUser/TCPIP_New/ConfigInfo

!TCPIPUser/TCPIP_New/ConfigInfo

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !TCPIPUser/TCPIP_New/ConfigInfo
Read OK:
File size: 0469 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
# ===================================================================
# Config system commands (for those who want to create scripts for
# there own applications.
#
# Commands are as follows:
#
# #                                   - comment, as you probably guessed!
# set <varname> "<string>"            - sets a variable to a given value
# create <type> <name>                - create a typed file or directory
# copy <source> <dest>                - copy a file with no translation
# delete <file>                       - delete a file if it exists
# translate <source> <dest> [<cmd>]   - translate file, substituting vars
#
# if "<cmd>" is given with translate, then all known variables are
# included at head file prefixed with the required command. For eg,
# for this and for !TCPIP you would use "set "
#
# Delete needs a full pathname to a file
# Copy and Translated expect to file the source file relative to
# !Process.Files
#
# If you need C libraries for handling these variables, or processing
# this file, email me: adam@comptech.demon.co.uk
#
# ===================================================================
00000000  23 20 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |# ==============|
00000010  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000040  3d 3d 3d 3d 3d 0a 23 20  43 6f 6e 66 69 67 20 73  |=====.# Config s|
00000050  79 73 74 65 6d 20 63 6f  6d 6d 61 6e 64 73 20 28  |ystem commands (|
00000060  66 6f 72 20 74 68 6f 73  65 20 77 68 6f 20 77 61  |for those who wa|
00000070  6e 74 20 74 6f 20 63 72  65 61 74 65 20 73 63 72  |nt to create scr|
00000080  69 70 74 73 20 66 6f 72  0a 23 20 74 68 65 72 65  |ipts for.# there|
00000090  20 6f 77 6e 20 61 70 70  6c 69 63 61 74 69 6f 6e  | own application|
000000a0  73 2e 0a 23 0a 23 20 43  6f 6d 6d 61 6e 64 73 20  |s..#.# Commands |
000000b0  61 72 65 20 61 73 20 66  6f 6c 6c 6f 77 73 3a 0a  |are as follows:.|
000000c0  23 0a 23 20 23 20 20 20  20 20 20 20 20 20 20 20  |#.# #           |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000e0  20 20 20 20 20 20 20 20  2d 20 63 6f 6d 6d 65 6e  |        - commen|
000000f0  74 2c 20 61 73 20 79 6f  75 20 70 72 6f 62 61 62  |t, as you probab|
00000100  6c 79 20 67 75 65 73 73  65 64 21 0a 23 20 73 65  |ly guessed!.# se|
00000110  74 20 3c 76 61 72 6e 61  6d 65 3e 20 22 3c 73 74  |t <varname> "<st|
00000120  72 69 6e 67 3e 22 20 20  20 20 20 20 20 20 20 20  |ring>"          |
00000130  20 20 2d 20 73 65 74 73  20 61 20 76 61 72 69 61  |  - sets a varia|
00000140  62 6c 65 20 74 6f 20 61  20 67 69 76 65 6e 20 76  |ble to a given v|
00000150  61 6c 75 65 0a 23 20 63  72 65 61 74 65 20 3c 74  |alue.# create <t|
00000160  79 70 65 3e 20 3c 6e 61  6d 65 3e 20 20 20 20 20  |ype> <name>     |
00000170  20 20 20 20 20 20 20 20  20 20 20 2d 20 63 72 65  |           - cre|
00000180  61 74 65 20 61 20 74 79  70 65 64 20 66 69 6c 65  |ate a typed file|
00000190  20 6f 72 20 64 69 72 65  63 74 6f 72 79 0a 23 20  | or directory.# |
000001a0  63 6f 70 79 20 3c 73 6f  75 72 63 65 3e 20 3c 64  |copy <source> <d|
000001b0  65 73 74 3e 20 20 20 20  20 20 20 20 20 20 20 20  |est>            |
000001c0  20 20 20 20 2d 20 63 6f  70 79 20 61 20 66 69 6c  |    - copy a fil|
000001d0  65 20 77 69 74 68 20 6e  6f 20 74 72 61 6e 73 6c  |e with no transl|
000001e0  61 74 69 6f 6e 0a 23 20  64 65 6c 65 74 65 20 3c  |ation.# delete <|
000001f0  66 69 6c 65 3e 20 20 20  20 20 20 20 20 20 20 20  |file>           |
00000200  20 20 20 20 20 20 20 20  20 20 20 20 2d 20 64 65  |            - de|
00000210  6c 65 74 65 20 61 20 66  69 6c 65 20 69 66 20 69  |lete a file if i|
00000220  74 20 65 78 69 73 74 73  0a 23 20 74 72 61 6e 73  |t exists.# trans|
00000230  6c 61 74 65 20 3c 73 6f  75 72 63 65 3e 20 3c 64  |late <source> <d|
00000240  65 73 74 3e 20 5b 3c 63  6d 64 3e 5d 20 20 20 2d  |est> [<cmd>]   -|
00000250  20 74 72 61 6e 73 6c 61  74 65 20 66 69 6c 65 2c  | translate file,|
00000260  20 73 75 62 73 74 69 74  75 74 69 6e 67 20 76 61  | substituting va|
00000270  72 73 0a 23 0a 23 20 69  66 20 22 3c 63 6d 64 3e  |rs.#.# if "<cmd>|
00000280  22 20 69 73 20 67 69 76  65 6e 20 77 69 74 68 20  |" is given with |
00000290  74 72 61 6e 73 6c 61 74  65 2c 20 74 68 65 6e 20  |translate, then |
000002a0  61 6c 6c 20 6b 6e 6f 77  6e 20 76 61 72 69 61 62  |all known variab|
000002b0  6c 65 73 20 61 72 65 0a  23 20 69 6e 63 6c 75 64  |les are.# includ|
000002c0  65 64 20 61 74 20 68 65  61 64 20 66 69 6c 65 20  |ed at head file |
000002d0  70 72 65 66 69 78 65 64  20 77 69 74 68 20 74 68  |prefixed with th|
000002e0  65 20 72 65 71 75 69 72  65 64 20 63 6f 6d 6d 61  |e required comma|
000002f0  6e 64 2e 20 46 6f 72 20  65 67 2c 0a 23 20 66 6f  |nd. For eg,.# fo|
00000300  72 20 74 68 69 73 20 61  6e 64 20 66 6f 72 20 21  |r this and for !|
00000310  54 43 50 49 50 20 79 6f  75 20 77 6f 75 6c 64 20  |TCPIP you would |
00000320  75 73 65 20 22 73 65 74  20 22 0a 23 0a 23 20 44  |use "set ".#.# D|
00000330  65 6c 65 74 65 20 6e 65  65 64 73 20 61 20 66 75  |elete needs a fu|
00000340  6c 6c 20 70 61 74 68 6e  61 6d 65 20 74 6f 20 61  |ll pathname to a|
00000350  20 66 69 6c 65 0a 23 20  43 6f 70 79 20 61 6e 64  | file.# Copy and|
00000360  20 54 72 61 6e 73 6c 61  74 65 64 20 65 78 70 65  | Translated expe|
00000370  63 74 20 74 6f 20 66 69  6c 65 20 74 68 65 20 73  |ct to file the s|
00000380  6f 75 72 63 65 20 66 69  6c 65 20 72 65 6c 61 74  |ource file relat|
00000390  69 76 65 20 74 6f 0a 23  20 21 50 72 6f 63 65 73  |ive to.# !Proces|
000003a0  73 2e 46 69 6c 65 73 0a  23 0a 23 20 49 66 20 79  |s.Files.#.# If y|
000003b0  6f 75 20 6e 65 65 64 20  43 20 6c 69 62 72 61 72  |ou need C librar|
000003c0  69 65 73 20 66 6f 72 20  68 61 6e 64 6c 69 6e 67  |ies for handling|
000003d0  20 74 68 65 73 65 20 76  61 72 69 61 62 6c 65 73  | these variables|
000003e0  2c 20 6f 72 20 70 72 6f  63 65 73 73 69 6e 67 0a  |, or processing.|
000003f0  23 20 74 68 69 73 20 66  69 6c 65 2c 20 65 6d 61  |# this file, ema|
00000400  69 6c 20 6d 65 3a 20 61  64 61 6d 40 63 6f 6d 70  |il me: adam@comp|
00000410  74 65 63 68 2e 64 65 6d  6f 6e 2e 63 6f 2e 75 6b  |tech.demon.co.uk|
00000420  0a 23 0a 23 20 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.#.# ===========|
00000430  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000460  3d 3d 3d 3d 3d 3d 3d 3d  0a                       |========.|
00000469