Re: changing time on a symlink

1998-10-29 Thread Glynn Clements
Salil Kumar wrote: > > > I need to change the time of symlink only. > > > Any other suggestions ? > > > > I think the only way is to use the time/date hack. > > > > 1. remove the link > > 2. set the clock to when the link should be modified > > 3. recreate the link > > 4. reset the clock to curr

Re: changing time on a symlink

1998-10-29 Thread Henrik Nordstrom
Salil Kumar wrote: > Thanks for the suggestion, but If we change system time, and > if the next CPU slice goesto some utility acting on system time, > (cron jobs etc.) will not this solution work adversely ? Yes. There are some major drawbacks from changing the system time. > Currenty I am wor

Re: changing time on a symlink

1998-10-29 Thread Salil Kumar
Henrik Nordstrom wrote: > Salil Kumar wrote: > > > I need to change the time of symlink only. > > Any other suggestions ? > > I think the only way is to use the time/date hack. > > 1. remove the link > 2. set the clock to when the link should be modified > 3. recreate the link > 4. reset the cl

Re: changing time on a symlink

1998-10-29 Thread Henrik Nordstrom
Salil Kumar wrote: > I need to change the time of symlink only. > Any other suggestions ? I think the only way is to use the time/date hack. 1. remove the link 2. set the clock to when the link should be modified 3. recreate the link 4. reset the clock to current date/time. There are wery few

Re: changing time on a symlink

1998-10-29 Thread Salil Kumar
ixx wrote: > On Wed, Oct 28, 1998 at 07:28:43PM -0800, Salil Kumar wrote: > > Hi, > > How can we change the time on a sym link through a C program ? > > look at utime (man 2 utime) Hi,I think utime change the time for the file pointed by sym link. I need to change the time of symlink only. Any

Re: changing time on a symlink

1998-10-29 Thread ixx
On Wed, Oct 28, 1998 at 07:28:43PM -0800, Salil Kumar wrote: > Hi, > How can we change the time on a sym link through a C program ? look at utime (man 2 utime)

changing time on a symlink

1998-10-28 Thread Salil Kumar
Hi, How can we change the time on a sym link through a C program ? Thanks, -Salil -