FYI - SET_PFCMARK script

Fairlight fairlite at fairlite.com
Wed Mar 30 15:10:01 PDT 2022


I suppose that depends upon whether it does its magic based on the cmark
at save or in logic upon read.

m->


On Wed, Mar 30, 2022 at 06:06:07PM -0400, Ken White thus spoke:
>    I believe changing cmark would require you to rebuild any indexes built on
>    date fields with two digit years.
> 
>    On March 30, 2022 8:17:47 AM EDT, Fairlight via Filepro-list
>    <filepro-list at lists.celestial.com> wrote:
> 
>  PFCMARK was a gross hack which never should have been seriously considered.
>  Everyone should have been using 4-digit years and doing their logic based
>  on those, then simply truncating their display fields to 2-digit years.
> 
>  m->
> 
>  On Wed, Mar 30, 2022 at 01:53:31AM -0400, Brian K. White via Filepro-list thus spoke:
> 
>  Changing PFCMARK changes the meaning of data that's already been recorded.
>  To me that means you should almost never change it. Once per career maybe,
>  or only on new installs with no old data.
> 
>  Really if it were up to me PFCMARK would have a special value EE or XX or
>  something that means instead of setting the meaning of a 2-digit year, it
>  throws an error any time a 2-digit year is encountered at all.
> 
>  But I think it's bad advice to be changing pfcmark lightly or frequently.
> 
>  --
>  bkw
> 
>  On 3/29/22 16:37, Richard D. Williams via Filepro-list wrote:
> 
>  Here is a script I used on a Linux server to always keep PFCMARK 10
>  years ahead.
> 
>  cat /usr/local/bin/SET_PFCMARK
>  YEAR=`date '+%G'`;
>  YEAR=$((YEAR + 10));
>  PFCMARK="${YEAR:2:2}";
>  export PFCMARK
> 
>  I set it in /etc/profile.d/filepro.sh and in my rc.local file.
>  I used this syntax . /usr/local/bin/SET_PFCMARK.
> 
>  Richard D. Williams
> 
>    --------------------------------------------------------------------------
> 
>  Filepro-list mailing list
>  Filepro-list at lists.celestial.com
>  Subscribe/Unsubscribe/Subscription Changes
>  [1]http://mailman.celestial.com/mailman/listinfo/filepro-list
> 
>    --------------------------------------------------------------------------
> 
>  Filepro-list mailing list
>  Filepro-list at lists.celestial.com
>  Subscribe/Unsubscribe/Subscription Changes
>  [2]http://mailman.celestial.com/mailman/listinfo/filepro-list
> 
>  --
>  Audi omnia, crede nihil.
> 
>    --------------------------------------------------------------------------
> 
>  Filepro-list mailing list
>  Filepro-list at lists.celestial.com
>  Subscribe/Unsubscribe/Subscription Changes
>  [3]http://mailman.celestial.com/mailman/listinfo/filepro-list
> 
> References
> 
>    Visible links
>    1. http://mailman.celestial.com/mailman/listinfo/filepro-list
>    2. http://mailman.celestial.com/mailman/listinfo/filepro-list
>    3. http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Audi omnia, crede nihil.


More information about the Filepro-list mailing list