Creating a symbolic link

You can create a symbolically linked object in the database or a controlled symbolic link from file_spec to path_name. This subcommand is available to UNIX users only.

About this task

ccm ln [-s] [-c|-comment comment_string] [-ce|-commentedit] 
       [-cf|-commentfile file_path] [-t|-task task_spec] file_path file_spec
-c|-comment comment
Specifies a comment to be appended on all baseline projects and their members when they are checked in to the released state. The comment can contain more than one line and accepts backslash-encoded values.
You can use this option with -commentedit and -commentfile. If you use the -commentedit option, the comment displays in the default text editor.
-ce|-commentedit
Specifies to invoke the default text editor to compose and edit the comment. The result saved from the text editor is used as the final comment. You can use this option with the -comment and -commentfile options.
-cf|-commentfile file_path
Specifies to use the contents of the specified file for the comment. If you specified -comment, it is appended to that comment. You can use this option with the -commentedit option.
file_spec
Specifies the name or the name and version of the symbolic link. The file_spec must provide a context project and parent directory. You can use a work area reference form or a project reference spec form (see File specification for details). If a version is not specified, then a default version is used.
file_path
Specifies the path to which the symbolic link points. The path does not have to be to a controlled file or a path in a maintained work area.
-s
Provides UNIX-style compatibility; otherwise, the option is ignored.
-t|-task task_spec
Specifies that the symbolic link is associated with the specified task. You can set the task_spec to a single task (see Task specification for details). If this option is not specified, the symbolic link is associated with any current task that is set.

Example

Create a symbolic link called sort.c to the sort.c object in the ico_2-1 project.

ccm ln -s \

/user/ccm_user_Aug10/ico_2-1/ico_2/utils/sort.c sort.c
Member sort.c-1 added to project ico_2-1
ccm ln -t 44 /users/kg/ccm_wa/keng421/john-unix/john/init.c /users/gke


Feedback