sean finney on 23 Jan 2007 16:17:10 -0000 |
On Tue, 2007-01-23 at 10:48 -0500, Chad Waters wrote: > $ date +%s > 1169567247 > > Is that what you're looking for? no, i think he means the st_ctime field on a file, which is a fairly tricky thing to do (and even trickier without root iirc, i refer you to the fine manpage for stat(2) for why) if this is on ext3, you can change the ctime via use of debugfs (see set_inode_somethingorother) though you probably have to umount the fs first, and these are heavy guns without safeties. i'm sure other fs's have something similar. alternatively, if you don't mind playing h.g. wells with your computer, you could always force the system date to before the desired time, and use at(1) to schedule a chown (or other inode-modifying call) for the desired time. however, this is neither accurate nor is it conducive towards large-scaled scripting :) sean Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|