TotalNET Advanced Server 5.2 Reference Manual

tnsuffix

This command allows you to manage AppleTalk map suffixes. You can list, read attribute values of, add, modify, and delete suffixes from the TotalNET AppleTalk map section. Suffixes handle file extensions in AppleTalk maps. AppleTalk maps represent associations between Macintosh-style file attributes and UNIX file suffixes. You can define more than one suffix for an AppleTalk map, and more than one file service can reference an AppleTalk map.

Location

TNHOME/usr/sbin

Usage

tnsuffix -L [-m atmap]]
tnsuffix -R [-m atmap [-x suffix [{-a attribute}]]]
tnsuffix (-A|-M) [-m atmap [-x suffix
 	{-a attribute=value}]]
tnsuffix -D -m atmap -x suffix

Options

-m atmap

Specify an AppleTalk map. 

-x suffix

Specify the suffix to add, modify, or delete. 

Attributes

comment

This attribute specifies the comment to associate with UNIX files.

Usage:

tnsuffix -M -m atmap -x suffix -a comment=string

conversion

This attribute specifies the conversion discipline to associate with UNIX files with the given suffix.

Usage:

tnsuffix -M -m atmap -x suffix -a conversion={ascii|binary}

creator

This attribute specifies the four-character Macintosh creator code to associate with UNIX files with the given suffix.

Usage:

tnsuffix -M -m atmap -x suffix
 	-a creator=Macintosh-creator-code

type

This attribute specifies the four-character Macintosh type code to associate with UNIX files with the given suffix.

Usage:

tnsuffix -M -m atmap -x suffix
 	-a type=Macintosh-type-code

Examples

  1. Use one of the following commands to list all available suffixes for the entire AppleTalk realm:


    tnsuffix
    tnsuffix -L
    

    Sample Output:

    atblahmap 

     

    .zip 

     

    .ppt 

     

    .doc 

    nnnmap 

     

    .xls 

     

    .txt 

     

    .ps 

  2. Use the following command to list all suffixes available for the AppleTalk map nnnmap:


    tnsuffix -L -m nnnmap

    Sample Output:


    .xls
    .txt
    .ps
    
  3. Use the following command to read the value of the attribute comment for the suffix .xls in the AppleTalk map atblahmap:


    tnsuffix -R -m atblahmap -x .xls -a comment
    
  4. Use the following command to create the suffix .ps in the AppleTalk map nnnmap:


    tnsuffix -A -m nnnmap -x .ps -a type=PS
     	-a comment="PostScripts"
  5. Use the following command to modify the value of the comment attribute to read "Microsoft Word for Windows 95 version 7.0" for the suffix .doc in the AppleTalk map atblahmap:


    tnsuffix -M -m atblahmap -x .doc
    -a comment="Microsoft Word for Windows 95 version 7.0"
  6. Use the following command to delete the suffix .xls from the AppleTalk map atblahmap:


    tnsuffix -D -m atblahmap -x .xls