link - make a link to an existing file
function link (name1, name2)
character*(*) name1, name2
integer function symlnk (name1, name2)
character*(*) name1, name2
Name1 must be the pathname of an existing file. Name2 is a pathname to be linked to file name1. Name2 must not already exist. The
returned value will be 0 if successful; a system error code otherwise.
Symlnk creates a symbolic link to name1.
SEE ALSO link(2), symlink(2), perror(3F), unlink(3F)BUGS
Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.
4.2 Berkeley Distribution May 15, 1985 LINK(3F)
Check Out this Related Man Page
SYMLINK(2) System Calls Manual SYMLINK(2)NAME
symlink - make symbolic link to a file
char *name1, *name2;
A symbolic link name2 is created to name1 (name2 is the name of the file created, name1 is the string used in creating the symbolic link).
Either name may be an arbitrary path name; the files need not be on the same file system.
Upon successful completion, a zero value is returned. If an error occurs, the error code is stored in errno and a -1 value is returned.
The symbolic link is made unless on or more of the following are true:
[ENOTDIR] A component of the name2 prefix is not a directory.
[EINVAL] Either name1 or name2 contains a character with the high-order bit set.
[ENAMETOOLONG] A component of either pathname exceeded 255 characters, or the entire length of either path name exceeded 1023 characters.
[ENOENT] The named file does not exist.
[EACCES] A component of the name2 path prefix denies search permission.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[EEXIST] Name2 already exists.
[EIO] An I/O error occurred while making the directory entry for name2, or allocating the inode for name2, or writing out the link
contents of name2.
[EROFS] The file name2 would reside on a read-only file system.
[ENOSPC] The directory in which the entry for the new symbolic link is being placed cannot be extended because there is no space left
on the file system containing the directory.
[ENOSPC] The new symbolic link cannot be created because there there is no space left on the file system that will contain the sym-
[ENOSPC] There are no free inodes on the file system on which the symbolic link is being created.
[EDQUOT] The directory in which the entry for the new symbolic link is being placed cannot be extended because the user's quota of
disk blocks on the file system containing the directory has been exhausted.
[EDQUOT] The new symbolic link cannot be created because the user's quota of disk blocks on the file system that will contain the
symbolic link has been exhausted.
[EDQUOT] The user's quota of inodes on the file system on which the symbolic link is being created has been exhausted.
[EIO] An I/O error occurred while making the directory entry or allocating the inode.
[EFAULT] Name1 or name2 points outside the process's allocated address space.
SEE ALSO link(2), ln(1), unlink(2)4.2 Berkeley Distribution August 26, 1985 SYMLINK(2)
I am very new to scripts and only have a basic knowledge
What i am trying to do is move files from one directory to another, but i need to make sure the file is stable before it moves the file to the destination. Here is the script that i am using that is moving the files, it part of a script... (8 Replies)
I need to be able to move files from one central locations to different servers on our network. So i want all of our operators to place files to one area on the main storage area. From there i need a script that first checks the file is stable (finished copying)
then copy to another server,... (5 Replies)
I have got a simple script that moves files from one folder to another, but would like to add some extra functions to the script.
Firstly i would like to add a file stable check. We can copy large files to the source directory and i want to ensure the copy has finished before its moved to... (2 Replies)
I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated!
1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working!
2. I'm trying to download TopCat. I've done... (2 Replies)