get_mapped_file

Purpose:

Get the location of a mapped file or resource.

Enter:

get_mapped_file <keyword>

Where:

keyword

Specify the keyword string that is located in the file /data/cell_map_location that is associated with the requested file.

Example:

get_mapped_file @WORLD_DRIVE
The above command results in ‘//2/world/drive’ being printed on STD_OUT.

Notes:

If the keyword is not known, it can be determined by looking at the file /data/cell_map_location or you can enter the command ‘map_keywords’. The following is an example of how to use this command in a script file, called get_map, that needs to know where the world drive is located.

         #!/bin/sh  
 
         file=‘get_mapped_file $1’  
         if [ ‘”$file”’ = ‘NOT FOUND’ ]  
         then  
            echo get_mapped_file could not find keyword=$1  
            exit  
         else  
            if [ “$file” = ‘NO KEYWORD ENTERED’ ]  
            then  
               echo Missing KEYWORD argument to get_mapped file  
               exit  
            fi  
         fi  
                  # do what ever you need to do on the world drive  
         .

 

To use the above script,  enter the following in the command line:

get_map @WORLD_DRIVE

See Also: