next up previous contents index
Next: Accessing the data Up: The FATMEN interactive Previous: Using the command

Using KUIP macros with FATMEN CLI

 

KUIP macros may be used to execute a whole sequence of commands, e.g. entering data into pre-existing directories (created as shown above).

The KUIP macro FATEX1 KUMAC containing FATMEN commands

cd GOOSSENS/DCF/R3             | Go to target directory (DCF Release 3)
*   Enter information about tape MG2325 with its four files
add/tape MG2325 MG2325 1 Prodid file1 VMF 0 CERNVM 'DCF Product idendification'
add/tape MG2325 MG2325 2 MEMO   file2 VMF 0 CERNVM 'Memo to users'
add/tape MG2325 MG2325 3 EXECS  file3 VMF 0 CERNVM 'Installation execs'
add/tape MG2325 MG2325 4 Binary file4 VMF 0 CERNVM 'TEXT files and verification'
cd \ \ SMFF/R1         | Reset target directory (SMFF Release 1)
*   Enter information about tapes MG2201 and MG2309 with each one file
add/tape MG2201 MG2201 1 PTF_M5 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 5'
add/tape MG2309 MG2309 1 PTF_M6 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 6'
cd \ R3                    | Next SMFF subdirectory
*   Enter information about tape MG2401 with one file   (SMFF Release 3)
add/tape MG2401 MG2401 1 PTF_M2 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 2'

The effect of running the KUIP macro file shown above is shown below:

Running a KUIP macro containing FATMEN commands

FM> TRACE ON           | Set trace to see what is happening
FM> EXE FATEX1         | Execute KUIP macro FATEX1
>>> trace on
>>> cd GOOSSENS/DCF/R3
Current Working Directory = //CERN/CNDIV/GOOSSENS/DCF/R3
>>> add/tape IC2325 IC2325 1 Prodid file1 VMF 0 CERNVM 'DCF Product
idendification'
//CERN/CNDIV/GOOSSENS/DCF/R3/PRODID
PUN FILE 0033 SENT TO   FMCNDIV RDR AS  0050 RECS 0009 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> add/tape IC2325 IC2325 2 MEMO   file2 VMF 0 CERNVM 'Memo to users'
//CERN/CNDIV/GOOSSENS/DCF/R3/MEMO
PUN FILE 0034 SENT TO   FMCNDIV RDR AS  0051 RECS 0008 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> add/tape IC2325 IC2325 3 EXECS  file3 VMF 0 CERNVM 'Installation execs'
//CERN/CNDIV/GOOSSENS/DCF/R3/EXECS
PUN FILE 0035 SENT TO   FMCNDIV RDR AS  0052 RECS 0008 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> add/tape IC2325 IC2325 4 Binary file4 VMF 0 CERNVM 'TEXT files and
verification'
//CERN/CNDIV/GOOSSENS/DCF/R3/BINARY
PUN FILE 0036 SENT TO   FMCNDIV RDR AS  0053 RECS 0009 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> cd \\ SMFF/R1
Current Working Directory = //CERN/CNDIV/GOOSSENS/SMFF/R1
>>> add/tape IC2201 IC2201 1 PTF\_M5 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 5'
//CERN/CNDIV/GOOSSENS/SMFF/R1/PTF\_M5
PUN FILE 0037 SENT TO   FMCNDIV RDR AS  0054 RECS 0009 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> add/tape IC2309 IC2309 1 PTF\_M6 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 6'
//CERN/CNDIV/GOOSSENS/SMFF/R1/PTF\_M6
PUN FILE 0038 SENT TO   FMCNDIV RDR AS  0055 RECS 0009 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
>>> cd \ R3
Current Working Directory = //CERN/CNDIV/GOOSSENS/SMFF/R3
>>> add/tape IC2401 IC2401 1 PTF_M2 file1 VMF 0 CERNVM 'SMFF PTF Mod-level 2'
//CERN/CNDIV/GOOSSENS/SMFF/R3/PTF_M2
PUN FILE 0039 SENT TO   FMCNDIV RDR AS  0056 RECS 0009 CPY  001 A NOHOLD NOKEEP
FMFZO - Your update has been sent to the server
FM>

Continuation lines within KUIP macros

 

If a command does not fit completely in one line it can be wrapped on the next line(s). If the last character of a line is an underscore that line will be logically joined to the next one (excluding the underscore obviously). The next line may have also an underscore. The resulting full command line is however limited to a maximum of 255 characters.

A FATMEN KUMAC using continuation lines

CD //CERN/CHARM2/TEST/DST1/ELEC/HO20/NOM/E02
add/tape NH0391 NH0391 1  NOSC FILE1  EP 0 CERNVM _
'(11513) 4001 4002 4003 4004'
CD //CERN/CHARM2/TEST/DST1/ELEC/HO20/NOM/E02.5
add/tape NH0391 NH0391 2  NOSC FILE2  EP 0 CERNVM _
'(8841)  4005 4006'
CD //CERN/CHARM2/TEST/DST1/ELEC/HO20/NOM/E03
add/tape NH0392 NH0392 1  NOSC FILE1  EP 0 CERNVM _
'(19978) 3989 3990 3991 3992 3993 3994'
CD //CERN/CHARM2/TEST/DST1/ELEC/HO20/NOM/E04
add/tape NH0392 NH0392 2  NOSC FILE2  EP 0 CERNVM _
'(12798) 3995 3996 3997'


Janne Saarela
Mon May 15 09:59:59 METDST 1995