Ns symlink

From AOLserver Wiki
Revision as of 02:14, 15 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 681)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_symlink.html


NAME

ns_symlink - Create a symbolic link

SYNOPSIS

ns_symlink ?-nocomplain? filename1 filename2

DESCRIPTION

This command creates a symbolic link named filename2 that points to the file or directory specified by filename1. If the link fails, a Tcl error is generated, unless -nocomplain is specified.
This is a legacy command from when Tcl did not have this functionality. It is now recommended you use

Tcl's file link command instead. In other words, this:

   ns_symlink $file1 $file2

is equivalent to:

   file link -symbolic $file1 $file2

EXAMPLES

   % ns_symlink ns_info pageroot/index.html ns_info pageroot/foo.html

SEE ALSO

ns_chmod, ns_link, ns_mkdir, ns_rename, ns_rmdir

Category Documentation - Category Core Tcl API