From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,ca90716801ce9d4b X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny05.POSTED!3485a766!not-for-mail From: Bob Harris Newsgroups: comp.unix.tru64 Subject: Re: link References: <1117653227.936766.7270@f14g2000cwb.googlegroups.com> User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) Message-ID: Date: Thu, 02 Jun 2005 00:46:13 GMT NNTP-Posting-Host: 68.160.35.88 X-Complaints-To: abuse@verizon.net X-Trace: trndny05 1117673173 68.160.35.88 (Wed, 01 Jun 2005 20:46:13 EDT) NNTP-Posting-Date: Wed, 01 Jun 2005 20:46:13 EDT Xref: g2news1.google.com comp.unix.tru64:723 In article <1117653227.936766.7270@f14g2000cwb.googlegroups.com>, "lynda" wrote: > Can anyone tell me how i would do this command > > Create a soft link in progs called mylink2, which is a absolute soft > link to the thismonth file in your home directory. > > progs is in the work dirctory. > > Thanx > > Lynda if you are talking about link(), then this creates hardlinks. Softlinks are created by symlink() status = symlink("contents_of_symlink", "symlink_name"); if ( status != 0 ) { perror("symlink_name"); exit(EXIT_FAILURE); }