On Tuesday, May 7, 2002, at 09:15 , Nikola Janceski wrote: [..] > The factual part, I could do a system call and 'touch' the links to the > time > I want. But I was hoping for a perl way of doing that. [..]
this could be a 'semantic' issue - and I am jack rabbitting on the token 'link' here - but lets rule out the obvious first. lets try this another way. the case of 'hard links'. vladimir: 62:] ls -li bob frodo frodo: No such file or directory 237948538 -rw-r--r-- 1 drieux house 134 May 2 17:49 bob vladimir: 63:] ln bob frodo vladimir: 64:] ls -li bob frodo 237948538 -rw-r--r-- 2 drieux house 134 May 2 17:49 bob 237948538 -rw-r--r-- 2 drieux house 134 May 2 17:49 frodo vladimir: 65:] touch frodo vladimir: 66:] !ls ls -li bob frodo 237948538 -rw-r--r-- 2 drieux house 134 May 11 16:53 bob 237948538 -rw-r--r-- 2 drieux house 134 May 11 16:53 frodo vladimir: 67:] note that since there is only one inode in the 'file table' and it just happens to have two 'name' entries in the 'file table' what occurs is that the 'file' got updated. we notice that the problem with 'symbolic links' is that they do not change - because the system wanders through and does the 'touch' on the file it is linked to. vladimir: 68:] ls -l hom* ind* lrwxrwxrwx 1 drieux house 10 Jan 28 20:43 home.html -> index.html -rwxr--r-- 1 drieux house 13627 May 11 16:51 index.html vladimir: 69:] touch home.html vladimir: 70:] ls -l hom* ind* lrwxrwxrwx 1 drieux house 10 Jan 28 20:43 home.html -> index.html -rwxr--r-- 1 drieux house 13627 May 11 16:55 index.html vladimir: 71:] that being clarified - why in GOD's Little Green Earth are we trying to set the 'time' to being older.... vladimir: 93:] ls -ld DTV index.html drwxr-xr-x 2 drieux house 4096 Jul 12 1997 DTV -rwxr--r-- 1 drieux house 13627 May 11 16:55 index.html vladimir: 94:] touch -r DTV index.html vladimir: 95:] ls -ld DTV index.html drwxr-xr-x 2 drieux house 4096 Jul 12 1997 DTV -rwxr--r-- 1 drieux house 13627 Jul 12 1997 index.html vladimir: 96:] that a thing can be done does not clearly lead one to need to do it??? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]