-
Notifications
You must be signed in to change notification settings - Fork 5
/
PAROUTE.REX
46 lines (38 loc) · 1.3 KB
/
PAROUTE.REX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*********************************************************************/
/* */
/* PAROUTE EXEC (Version 1.0, Date 94/06/30) */
/* */
/* **** COPYRIGHT UCI Nijmegen, The Netherlands 1994 **** */
/* */
/*********************************************************************/
version = '1.0 ; 94/06/30'
say 'PAROUTE EXEC version' version
Address Command
batch_fn = 'PAROUTE'
batch_ft = 'BATCH'
batch_fm = 'A'
netinit_ft = 'NETINIT'
netinit_fm = 'A'
mnf_fn = 'BITEARN'
mnf_ft = 'NODES'
'MAKEBUF'
'LISTFILE' mnf_fn mnf_ft '* (STACK NOH'
If rc ^= 0 then Do
say 'File' mnf_fn mnf_ft 'not found.'
'DROPBUF'
Exit 28
end
Parse Pull . . mnf_fm .
'DROPBUF'
Parse Upper Arg nodes
'SET CMSTYPE HT'
'ERASE' batch_fn batch_ft batch_fm
'SET CMSTYPE RT'
Do While nodes ^= ''
Parse Var nodes node nodes
'EXECIO 1 DISKW' batch_fn batch_ft batch_fm '(STR :node.'node
'EXECIO 1 DISKW' batch_fn batch_ft batch_fm '(STR :file.'node'.'netinit_ft'.'netinit_fm
End
'FINIS' batch_fn batch_ft batch_fm
'PAROUTE -b 'batch_fn'.'batch_ft'.'batch_fm '-e' userid() mnf_fn'.'mnf_ft'.'mnf_fm
Exit rc