• Some over haching

    From Gert Andersen@2:230/150 to Janis Kracht on Thursday, January 05, 2017 23:53:04
    Hello Janis!

    I just come to send out some files here Thursday evening several times and with
    day number for Friday.
    This while I was trying out to make some updated daily nodelst files for stn and pasnet.
    The problem is that use of julian day for Europe and US only works early in the
    morning like between midnight and midday.
    The best time to use julian day is do it when the world have the same day number else have one to manage it with the number to be like ${num}-1 so the number get the right digit when it shall work automatic.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: http://www.kofobbs.dk (2:230/150)
  • From Janis Kracht@1:261/38 to Gert Andersen on Friday, January 06, 2017 01:02:02
    Hi Gert,

    I just come to send out some files here Thursday evening several times and wit
    day number for Friday.
    This while I was trying out to make some updated daily nodelst files for stn and pasnet.
    The problem is that use of julian day for Europe and US only works early in th
    morning like between midnight and midday.
    The best time to use julian day is do it when the world have the same day number else have one to manage it with the number to be like ${num}-1 so the number get the right digit when it shall work automatic.

    I haven't had a problem with the date, Gert..

    I use this in my script:

    num=`date +%j --date=Friday`
    pick=`expr substr $num 2 3`
    year=`date +%Y`
    lastwk=$(($num -7))
    lpick=`expr substr $lastwk 2 3`

    Then I use the appropriate var where I need it.

    Hope this helps..

    Take care,
    Janis

    --- BBBS/Li6 v4.10 Toy-3
    * Origin: Prism bbs (1:261/38)
  • From Gert Andersen@2:230/150 to Janis Kracht on Friday, January 06, 2017 08:53:10
    * Reply to message originally in area CarbonArea

    Hello Janis!

    Fri Jan 06 2017, Janis Kracht wrote to Gert Andersen:

    I just come to send out some files here Thursday evening several times
    and wit day number for Friday.
    This while I was trying out to make some updated daily nodelst files for
    stn and pasnet.
    The problem is that use of julian day for Europe and US only works early
    in th morning like between midnight and midday.
    The best time to use julian day is do it when the world have the same
    day number else have one to manage it with the number to be like ${num}-1
    so the number get the right digit when it shall work automatic.

    I haven't had a problem with the date, Gert..

    I use this in my script:

    num=`date +%j --date=Friday`
    pick=`expr substr $num 2 3`
    year=`date +%Y`
    lastwk=$(($num -7))
    lpick=`expr substr $lastwk 2 3`

    Then I use the appropriate var where I need it.

    Hope this helps..

    Yes, I maybe should have make me a script file for each week day and then is it
    that I forgot to change the day for julian day so by each of my dailylst script
    get the right week day for julian day.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: KofoBBS at ftp://ftp.kofobbs.dk (2:230/150)
  • From Gert Andersen@2:230/150 to Janis Kracht on Friday, January 06, 2017 18:37:10
    * Reply to message originally in area CarbonArea

    Hello Janis!

    Fri Jan 06 2017, Janis Kracht wrote to Gert Andersen:

    I haven't had a problem with the date, Gert..

    I use this in my script:

    num=`date +%j --date=Friday`
    pick=`expr substr $num 2 3`
    year=`date +%Y`
    lastwk=$(($num -7))
    lpick=`expr substr $lastwk 2 3`

    Then I use the appropriate var where I need it.

    Hope this helps..

    I thinking on then too on how I by linux can manage a dos command as
    example 'if not then copy else'
    if not exist lnxr500.${num} then copy lnxr500.006 to a dir lnxr500.${num} else copy lnxr500.${num} to dir\
    The script get the julian day and then is it on by checking some segment files and copy them to daily segment files, so latest and newest segment is there to makenl use the rights segment to the dailylist.


    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: KofoBBS at ftp://fido0.kofobbs.net (2:230/150)
  • From Janis Kracht@1:261/38 to Gert Andersen on Friday, January 06, 2017 16:22:58
    Hi Gert,

    I haven't had a problem with the date, Gert..

    I use this in my script:

    num=`date +%j --date=Friday`
    pick=`expr substr $num 2 3`
    year=`date +%Y`
    lastwk=$(($num -7))
    lpick=`expr substr $lastwk 2 3`

    Then I use the appropriate var where I need it.

    Hope this helps..

    I thinking on then too on how I by linux can manage a dos command as
    example 'if not then copy else'
    if not exist lnxr500.${num} then copy lnxr500.006 to a dir lnxr500.${num} else
    copy lnxr500.${num} to dir\
    The script get the julian day and then is it on by checking some segment files >and copy them to daily segment files, so latest and newest segment is there to
    makenl use the rights segment to the dailylist.

    I created a new .ctl file for each day of the week, monday.ctl, tuesday.ctl, etc. etc. for the dailylist nodelist files.

    My cronjob just runs that day's .ctl file.

    Take care,
    Janis

    --- BBBS/Li6 v4.10 Toy-3
    * Origin: Prism bbs (1:261/38)
  • From Gert Andersen@2:230/150 to Janis Kracht on Saturday, January 07, 2017 11:13:00
    * Reply to message originally in area CarbonArea

    Hello Janis!

    Fri Jan 06 2017, Janis Kracht wrote to Gert Andersen:

    I thinking on then too on how I by linux can manage a dos command as
    example 'if not then copy else'
    if not exist lnxr500.${num} then copy lnxr500.006 to a dir lnxr500.${num}
    else copy lnxr500.${num} to dir\
    The script get the julian day and then is it on by checking some segment
    files and copy them to daily segment files, so latest and newest segment
    is there to makenl use the rights segment to the dailylist.

    I created a new .ctl file for each day of the week, monday.ctl,
    tuesday.ctl, etc. etc. for the dailylist nodelist files.

    My cronjob just runs that day's .ctl file.

    What about the zone.ctl is you then just use one zone.ctl to make sure you have
    incoming segments in use or then 7 zone.ctl.
    I normaly using zone.ctl and 7 dXzone.ctl file but the problem is that when I run the dailys distrib as dlist1 dlist2 etc. then is the zone output files got to got like dzone.013 after dzone.006.
    My daily .ctl have this set in them
    process saturday
    publish saturday

    Then is there else to do a daily cp zone.006 or zone.013 to zone.${num} so it been to the actually day.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
    * Origin: KofoBBS at ftp://fido0.kofobbs.net (2:230/150)