Skip to content

Commit

Permalink
Create PAROUTE.REX
Browse files Browse the repository at this point in the history
  • Loading branch information
moshix authored Feb 8, 2024
1 parent 21e2802 commit 3012a1c
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions PAROUTE.REX
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 3012a1c

Please sign in to comment.