in reply to Re: Please explain -C / inode
in thread Please explain -C / inode

Thank you for this info. It seems fairly clear that if I want a creation date, I'll have to write it myself somewhere. (Just wish I'd thought of it BEFORE I created the files :-)

My fundamental question is now answered but I am still curious... what on earth is -C for?

Replies are listed 'Best First'.
Re: Re: Re: Please explain -C / inode
by emilford (Friar) on Jul 01, 2002 at 22:52 UTC
    The -C is the operator for the ctime stat field. They (-C and ctime) both mean the file's (inode) change time. I can't explain it any further. Perhaps one of the other monks?
Re: Re: Re: Please explain -C / inode
by Juerd (Abbot) on Jul 01, 2002 at 22:56 UTC

    what on earth is -C for?

    "The field st_ctime is changed by writing or by setting inode information (i.e., owner, group, link count, mode, etc.)." -- stat(2)

    Next time, maybe you should try Google first.

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.
    

      Thank you. Does the "etc" include overwriting the file from within Perl, appending to the file or overwriting it by FTP?

      I appreciate you sharing your knowledge - even when you are repeating my original question.

        Does the "etc" include overwriting the file from within Perl, appending to the file or overwriting it by FTP?

        Etc includes everything that changes inode information. When that happens, is (as far as I know) platform and filesystem dependent. Try :)

        Update - Great. My LEAST productive node of the day gets upvoted?

        - Yes, I reinvent wheels.
        - Spam: Visit eurotraQ.