Ns link

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

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


NAME

ns_link - Create a hard link

SYNOPSIS

ns_link ?-nocomplain? filename1 filename2

DESCRIPTION

This command creates a hard 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_link $file1 $file2

is equivalent to:

   file link -hard $file1 $file2

EXAMPLES

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

SEE ALSO

ns_chmod, ns_mkdir, ns_rename, ns_rmdir, ns_symlink

Category Documentation - Category Core Tcl API