FYI - SET_PFCMARK script
Fairlight
fairlite at fairlite.com
Wed Mar 30 05:17:47 PDT 2022
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
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Audi omnia, crede nihil.
More information about the Filepro-list
mailing list