Subj : Some over haching To : Janis Kracht From : Gert Andersen Date : Fri Jan 06 2017 08:53 am * 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. JK>I haven't had a problem with the date, Gert.. JK>I use this in my script: JK>num=`date +%j --date=Friday` JK>pick=`expr substr $num 2 3` JK>year=`date +%Y` JK>lastwk=$(($num -7)) JK>lpick=`expr substr $lastwk 2 3` JK>Then I use the appropriate var where I need it. JK>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)