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 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..
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 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 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.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 197:03:29 |
Calls: | 500,233 |
Calls today: | 2 |
Files: | 95,197 |
D/L today: |
440 files (497M bytes) |
Messages: | 464,125 |