#]
#] *********************
#] "$d_bin"'webSite update notes.txt' - LOCAL d_web update, notes
# www.BillHowell.ca 01Sep2023 initial, previous notes in QNial, etc ("see also" below Setup)
# view in text editor, using constant-width font (eg courier), tabWidth = 3
#] +-----+
#] see also :
#] "$d_bin"'0_test/fileops/0_fileops test notes.txt'
#] "$d_bin"'fileops notes.txt'
#] "$d_web"'Neural nets/TrNNs_ART/0_TrNNs_ART notes.txt'
#] "$d_PROJECTS"'bin - secure/dWebAll_upload_online log.txt'
#] "$d_PROJECTS"'bin - secure/dWebPage_upload_online log.txt'
#] "$d_bin"'webSite update [old ToDo, templt, geany regexpr]s.txt'
#] "$d_bin"'webSite maintenance specific files.link.txt'
#48************************************************48
#24************************24
# Table of Contents, generate with :
# $ grep "^#]" "$d_bin"'webSite update notes.txt' | sed "s/^#\]/ /" >"$d_bin"'webSite update TbleOfContents.txt'
#
#24************************24
#] +-----+
#] ToDos active :
14Sep2023 pOvrClassL_get_pClassL pOvrClassL pHtmlClassAll_L - generate a pList of all classes
16Sep2023 must also trap [no-tab, empty] strP in pHum_sed_pCde? ...later...
don't think affects the current situation (no empty pCde),
but may make code more bullet-proof in general
20Sep2023 format 'status & updates' MenuTops [All_, TrNN]
I need to split [projmajor, projmini, pandemics, etc] - by color?
20Sep2023 MenuTop [copyright, help] are incomplete, fix classes
23Sep2023 probably deleted, must get from backup :
/home/bill/web/eir3.gif
/home/bill/web/../eir_subscribe_button.gif
/home/bill/web/eirtoc/2000/eirtoc_2742.html
27Sep2023 steps of pWebPageL_pStrP_replaceGetBad() - checks should be logged by func!!
22Oct2023 need script to clean up pLnkBmkL.txt
22Oct2023 I need to add code to clean up pLnkBad.txt
#] +-----+
#24************************24
#08********08
#] ??Nov2023
#08********08
#] ??Nov2023
#08********08
#] ??Nov2023
#08********08
#] ??Nov2023
#08********08
#] ??Nov2023
#08********08
#] 13Nov2023 FileZilla setup
Site Manager lost - maybe due to update of FileZilla?
seems to have run OK
check pLog, [MindCode, coallerID] webPages
pLogs - OK?
[MindCode, coallerID] webPages
updated: OK
links: OK
#08********08
#] 13Nov2023 bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
directory failure the first try - problem with USB drive connects?
... this keeps happening
2nd attempt :
now updating a pile of useless files - excludes not working?
dWebAll_upload_online()
pExcludes="$d_webWork"'pHtmlPathExclL non-webPage.txt'
+--+
/z_Archive/
/z_archive/
/z_history/
/z_Old/
/z_old/
+--+
>> is this restrictive enough??
how did I loose previous exclusions?
same as 30Sep2023
nothing compared to 20Sep2023
Just start with same excludes...
FileZilla - update must have lost my connection setup (arrrrgggghhhh!)
/home/bill/.config/filezilla
>> check this on USB backup
didn't help for site manager!! (sheesh!)
for now, jusr restart updload
#08********08
#] 12Nov2023 fix pOvrL_pStrP_pInsert_replace() ALL webPages
see also :
"$d_bin"'0_test/fileops/0_fileops test notes.txt'
"$d_bin"'fileops notes.txt'
"$d_bin"'webSite update notes.txt' - LOCAL d_web update, notes
"$d_bin"'fileops run webSite.sh'
# FIX!! Google Analytics 3 header with GA4 header :
# pStrP Google Analytics 4, leftover 3 fix tag.txt
pOvL="$d_webWork"'pHtmlPathAll_L.txt'
pStP="$d_webWork"'pStrP Google Analytics 4, leftover 3 fix tag.txt'
pIns="$d_webWork"'pHeader Google Analytics 4 tag.txt'
pOvrL_pStrP_pInsert_replace "$pOvL" "$pStP" "$pIns"
>> GREAT! it all worked, but it was tough
#08********08
#] 07Nov2023 backup of videos?
14:50$ bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
dWebAll_upload_online...
/home/bill/PROJECTS/bin - secure/lftp update entire webSite.sh: line 250: mirror: command not found
...zed Target Fusion, magPlasma into liquid metal cavity 231024.MTS
>> NUTS!! I left one video in d_web :
"$d_web"'My sports & clubs/natural- FECC Fusion/General Fusion, Vancouver, Magnetized Target Fusion, magPlasma into liquid metal cavity 231024.MTS'
Try again :
16:14$ bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
dWebAll_upload_online...
>> seems OK?
#08********08
#] 26Oct2023 upload again using "$d_bin"'fileops run webSite.sh'
"$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
oops - Tuesday 24Oct2023 audios of FECC webinar are still in d_web -
move to "$d_PROJECTS"'9_My sports & clubs/FECC - Fusion Energy Council of Canada/231024 FECC webinar/'
also mv vidCams to same dir
rename files according to speaker(s)
see "$d_SysMaint"'video/vidCam JVC Everio notes.txt'
Try again :
12:32$ bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
#08********08
#] 26Oct2023 [get, change, check]*[webPage, link]s
in "$d_bin"'fileops run webSite.sh'
[get, change, check]*[webPage, link]s
# use "$d_bin"'webSite update notes.txt'
# NOT "$d_web"'Neural nets/TrNNs_ART/0_TrNNs_ART notes.txt'
+-----+
# initial to start the day :
#dWebWork_archiveLocal # check : pHtmlPath[All_L, ExclL webPage].txt
#dWeb_get_pWebPageL # 21Oct2023 157 files in pHtmlPathAll_L.txt
#diff "$d_webWork"'z_Archive/pHtmlPathAll_L archive.txt'
10:11$ bash "$d_bin"'fileops run webSite.sh'
dWebWork_archiveLocal...
dWeb_get_pWebPageL...
pLnkFail.txt - Actually, I should only check after step "preps for pWebPageL_pStrP_replace"
/home/bill/web/eir3.gif
/home/bill/web/../eir_subscribe_button.gif
/home/bill/web/eirtoc/2000/eirtoc_2742.html
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/Neural Nets/TrNNs_ART/Walter Freemans chaos.html
/home/bill/web/pubinfo.html
/home/bill/web/webWork/fileops run commentary.html
/home/bill/web/webWork/fileops run commentary, webSite.html
/home/bill/web/webWork/fileops run webSite general.sh
>> check p128fig04.04
nemo :
capt0: p128fig04.04 reflectance changes at contours: fill-in illuminant-discounted colors.png
capt1: p129fig04.05 reflectance changes at contours: color contours.png
capt2: p129fig04.06 reflectance changes at contours: fill-in color; resolve uncertainty.png
above: p128fig04.04 reflectance changes at contours: fill-in color contours.png
Grossbergs list of [figure, table]s.html :
p128fig04.04 reflectance changes at contours: fill-in color contours.png
p129fig04.05 reflectance changes at contours: color contours.png
p129fig04.06 reflectance changes at contours: fill-in color; resolve uncertainty.png
>> what a mess
Grossbergs list of [figure, table]s.html :
change :
p128fig04.04 reflectance changes at contours: fill-in color contours.png
to :
p128fig04.04 reflectance changes at contours: fill-in illuminant-discounted colors.png
Walter Freemans chaos.html
>> why is this a pLnkFail?
>> why is dWeb_get_pWebPageL changing pLnk[Bad, Ext, Fail, Int].txt?
pHtmlPathAll_L.txt - 158 files
10:19$ diff "$d_webWork"'z_Archive/pHtmlPathAll_L archive.txt' "$d_webWork"'pHtmlPathAll_L.txt' --suppress-common-lines >"$d_webWork"'pHtmlPathAll_L diff.txt'
73a74
> /home/bill/web/Neural nets/TrNNs_ART/Walter Freemans chaos.html
>> OK, this is good
# do preps for pWebPageL_pStrP_replace
>> manually changed one link - didn't do above step
+-----+
# preps for pWebPageL_pStrP_replace :
#pInn_archiveLocal_pDateMod "$d_webWork"'pStrPAll_L change.txt'
#echo 'run: cp pStrPAll_L template.txt pStrPAll_L change.txt'
#cp "$d_webWork"'pStrPAll_L template.txt' "$d_webWork"'pStrPAll_L change.txt'
# manual copy-paste pLnkFail.txt' -> pStrPAll_L change.txt (ignore pLnkBad.txt for now)
# edit 'pStrPAll_L change.txt'
# geany regexpr search : ^(.*)$ replace : "\1"\t"\1" (only one-at-a-time??)
# fix replace string - look at [dir, fil]s
>> manually changed one link - didn't do above steps
+-----+
# iterate :
#pWebPageL_pStrP_replace # (bol_backup strOld strNew)
>> manually changed one link - didn't do above steps
webSite_get_links # 22Oct2023 took 06m06s to run
webSite_check_internalLinks # (no args) check if-valid internal links
10:44$ bash "$d_bin"'fileops run webSite.sh'
webSite_get_links...
grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches
... several similar, as before
grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches
sedRvrs = "=FERH ; nsedRvrsAll = 8622
sedRvrs = '=FERH ; nsedRvrsAll = 32
sedRvrs = "=ferh ; nsedRvrsAll = 14404
sedRvrs = '=ferh ; nsedRvrsAll = 1
sedRvrs = "=CRS ; nsedRvrsAll = 154
sedRvrs = '=CRS ; nsedRvrsAll = 0
sedRvrs = "=crs ; nsedRvrsAll = 473
sedRvrs = '=crs ; nsedRvrsAll = 27
webSite_check_internalLinks...
>> looks about right
# check pLnk[Ext, Fail, Int].txt but NOT (for now until I clean it up) pLnkBad.txt
# pLnkExt.txt 334kb 3,622 lines
# pLnkFail.txt 408b 9 lines
# pLnkInt.txt 144kb 1,147 lines
pLnkFail.txt
/home/bill/web/bin/starter/start_app.sh
/home/bill/web/eir3.gif
/home/bill/web/../eir_subscribe_button.gif
/home/bill/web/eirtoc/2000/eirtoc_2742.html
/home/bill/web/Neural Nets/TrNNs_ART/Walter Freemans chaos.html
/home/bill/web/pubinfo.html
/home/bill/web/webWork/fileops run commentary.html
/home/bill/web/webWork/fileops run commentary, webSite.html
/home/bill/web/webWork/fileops run webSite general.sh
>> OK for /images- captioned/
>> weird problem again of 'Walter Freemans chaos.html' - menu fails
change :
/Neural Nets/
to :
/Neural nets/
# do preps for pWebPageL_pStrP_replace
>> manually changed one link - didn't do above steps
#08********08
#] 22Oct2023 pWebPa geL_upload_online
pWebPageL_upload_online
15:05$ bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh'
#08********08
#] 22Oct2023 webSite_check_internalLinks
webSite_check_internalLinks()
08:28$ bash "$d_bin"'fileops run webSite.sh'
/home/bill/web/economics, markets/Cool stuff/stkIdx 200313 Prechter 1999 Landslide elections & Stock Prices.jpg
/home/bill/web/eir3.gif
/home/bill/web/../eir_subscribe_button.gif
/home/bill/web/eirtoc/2000/eirtoc_2742.html
/home/bill/web/Electric%20Universe/Anderson%20-%20Electric%20scarring/Anderson%20120725%20Electric%20scarring%20of%20the%20Earth's%20surface%20-%20annotated%20&%20scanned.pdf
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/ProjMajor/Climate - Kyoto Premise fraud/Lies, Damned Lies, and Scientists/Howell 150331 Lies, Damned Lies, and Scientists - Summary & context.pdf
/home/bill/web/ProjMini/PuetzUWS/Howell - Quick introduction to Puetz Universal Wave Series (UWS) fractal time).html
/home/bill/web/ProjMini/PuetzUWS/ProjMini/PuetzUWS/Puetz - Universal Waves Series.ods
/home/bill/web/pubinfo.html
/home/bill/web/References/Neural Nets/TrNNs_ART/Walter Freemans chaos.html
/home/bill/web/webWork/fileops run commentary.html
/home/bill/web/webWork/fileops run commentary, webSite.html
/home/bill/web/webWork/fileops run webSite general.sh
>> big improvement, no /images- captioned/
# preps for pWebPageL_pStrP_replace :
pInn_archiveLocal_pDateMod "$d_webWork"'pStrPAll_L change.txt'
cp "$d_webWork"''pStrPAll_L template.txt' "$d_webWork"'pStrPAll_L change.txt'
08:38$ bash "$d_bin"'fileops run webSite.sh'
>> cp didn't work? yes - old version is used
>> pLnkBad.txt is too large, messed up, not usefult for now
# manual copy-paste some of 'pLnk[Bad, Fail].txt'?? -> 'pStrPAll_L YYMMDD.txt'
cp "$d_webWork"'pStrPAll_L change.txt' "$d_webWork"'pStrPAll_L template.txt'
08:51$ bash "$d_bin"'fileops run webSite.sh'
# edit 'pStrPAll_L change.txt'
# geany regexpr search : (.*)\t(.*) replace : "\1"\t"\2"
# fix replace string - look at [dir, fil]s
11:25$ bash "$d_bin"'fileops run webSite.sh'
+-----+
webSite_get_links # (no args) internal links [extract , check]
11:25$ bash "$d_bin"'fileops run webSite.sh'
pWebPageL_pStrP_replace # (bol_backup strOld strNew)
webSite_check_internalLinks # (no args) check if-valid internal links
11:38$ bash "$d_bin"'fileops run webSite.sh'
/home/bill/web/economics, markets/Cool stuff/stkIdx 200313 Prechter 1999 Landslide elections & Stock Prices.jpg
/home/bill/web/eir3.gif
/home/bill/web/../eir_subscribe_button.gif
/home/bill/web/eirtoc/2000/eirtoc_2742.html
/home/bill/web/Electric%20Universe/Anderson%20-%20Electric%20scarring/Anderson%20120725%20Electric%20scarring%20of%20the%20Earth's%20surface%20-%20annotated%20&%20scanned.pdf
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/ProjMajor/Climate - Kyoto Premise fraud/Lies, Damned Lies, and Scientists/Howell 150331 Lies, Damned Lies, and Scientists - Summary & context.pdf
/home/bill/web/ProjMini/PuetzUWS/Howell - Quick introduction to Puetz Universal Wave Series (UWS) fractal time).html
/home/bill/web/ProjMini/PuetzUWS/ProjMini/PuetzUWS/Puetz - Universal Waves Series.ods
/home/bill/web/pubinfo.html
/home/bill/web/References/Neural Nets/TrNNs_ART/Walter Freemans chaos.html
/home/bill/web/webWork/fileops run commentary.html
/home/bill/web/webWork/fileops run commentary, webSite.html
/home/bill/web/webWork/fileops run webSite general.sh
>> same problems!!!?
>> did I forget to run pWebPageL_pStrP_replace?
pWebPageL_pStrP_replace # (bol_backup strOld strNew)
11:42$ bash "$d_bin"'fileops run webSite.sh'
11:43$ bash "$d_bin"'fileops run webSite.sh'
webSite_get_links...
grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches
... same binary file matches
grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches
sedRvrs = "=FERH ; nsedRvrsAll = 8618
sedRvrs = '=FERH ; nsedRvrsAll = 32
sedRvrs = "=ferh ; nsedRvrsAll = 14403
sedRvrs = '=ferh ; nsedRvrsAll = 1
sedRvrs = "=CRS ; nsedRvrsAll = 154
sedRvrs = '=CRS ; nsedRvrsAll = 0
sedRvrs = "=crs ; nsedRvrsAll = 472
sedRvrs = '=crs ; nsedRvrsAll = 27
12:04$ bash "$d_bin"'fileops run webSite.sh'
webSite_check_internalLinks...
>> this has same errors
>> definitely, pWebPageL_pStrP_replace doesn't work. WHY!!???
>> yikes, I mixed uppStrPAll_L [template, working]
12:25$ bash "$d_bin"'fileops run webSite.sh'
pWebPageL_pStrP_replace...
#08********08
#] 21Oct2023 checks on webSite
"$d_bin"'fileops run webSite.sh' :
iterate : [get, change, check]*[webPage, link]s
#dWebWork_archiveLocal # (no args) local backups of key d_webWork files
# manual pre-check : pHtmlPath[All_L, ExclL webPage].txt,
#dWeb_get_pWebPageL # (no args) generate pHtmlPathAll_L occasionally
#webSite_get_links # (no args) internal links [extract , check]
# check change : pLnk[All, Bad, Bmk, Ext, Fail, Int, Raw].txt
#webSite_check_internalLinks # (no args) check if-valid internal links
# manual preps for pWebPageL_pStrP_replace :
# cp 'pStrPAll_L template.txt' -> 'pStrPAll_L YYMMDD.txt'
# manual copy-paste some of 'pLnk[Bad, Fail].txt'?? -> 'pStrPAll_L YYMMDD.txt'
# edit 'pStrPAll_L YYMMDD.txt'
#pWebPageL_pStrP_replace # (bol_backup strOld strNew)
+-----+
dWebWork_archiveLocal # (no args) local backups of key d_webWork files
21:02$ bash "$d_bin"'fileops run webSite.sh'
/home/bill/web/bin/fileops.sh: line 1218: : No such file or directory
/home/bill/web/bin/fileops.sh: line 1218: : No such file or directory
>> why all of a sudden this? start of
dWeb_get_pWebPageL calls :
povrL_idx_strTst_cut()
1218 {
>> but mix of symCodes in dWeb_get_pWebPageL - put all to 769
povrL_idx_strTst_cut "$povrL769" "$idx769" "$strTst769" "$pExclL769"
>> none of syms defined
change to :
povrL_idx_strTst_cut "$pAll_L769" "$idx769" "$strTst769" "$pExclL769"
povrL_idx_strTst_cut "$pTrNNL769" "$idx769" "$strTst769" "$pExclL769"
>> but what are "$idx769" "$strTst769" ?
povrL_idx_strTst_cut not in this file below
"$d_bin"'webSite update notes.txt'
15Sep2023 update all webPage Menus
olde code :
dWeb_get_dWebPageL()
povrL_idx_strTst_cut "$d_webWork"'pHtmlPathAll_L.txt' 1 ': No such file or directory
grep: : No such file or directory
grep: : No such file or directory
... many more lines
>> each line to grep is taken as a pth
re-run with more diagnostics :
19:16$ bash "$d_bin"'fileops run webSite.sh'
grep: : No such file or directory
grep: : No such file or directory
... many more
pLog :
webSite_get_links_run : no sedStrt901 in pAllTmp901
webSite_get_links_run : no sedStrt901 in pAllTmp901
>> webSite_get_links_run() isn't working at all
grep "$sedStrt901" "$pAllTmp901" >"$pTemper901"
sed "s|.*$sedStrt901\(.*\)|\1|" "$pTemper901" >"$pResidl901"
$ pAllTmp901="$d_temp"'webSite_get_links pAllTmp.txt'
$ pResidl901="$d_temp"'webSite_get_links pResTmp.txt'
$ pTemper901="$d_temp"'webSite_get_links_run temp.txt'
$ grep '"$pResidl901"
>> ah-hah, this isn't working. why?
try :
$ grep '"$pTemper901"
$ sed "s|.*"$pResidl901"
>> good - yikes, U should have known NOT to put escapes in sedStrt!!
webSite_get_links()
change :
cat "$pHtmAll901" | tr \\n \\0 | xargs -0 -IFILE grep '"$pAllTmp901"
webSite_get_links_run "$pLnkHrf901" '"$pAllTmp901"
webSite_get_links_run "$pLnkHrf901" '> check these later
>> priority is on current webPages
looks OK? "$bin'bin logs/pBadL_archive_pArchiveL_restore log.txt'
very quick checks :
home.html OK
"$d_ProjMajor"'History/Ukraine-Russia/Howell - Ukraine and Russia.html'
>> Now it works 0 failed links OK
>> very encouraging!
#08********08
#] 02Oct2023 re-instate update_dWebHtmlOnly or whatever...
pWebPageL="$d_webWork"'pHtmlPathAll_L.txt'
dWebPage_upload_online()
# must [change dRoot, mv to] "$d_PROJECTS"'webHtmlOnly/' for lftp upload
while IFS='' read -u 9 pHtmlOnly; do
pWebHtmlOnly=$( echo "$pHtmlOnly" | sed 's|\/home\/bill\/web\/|/home/bill/PROJECTS/webHtmlOnly/|' )
sed 's|\/home\/bill\/web\/|http://www.BillHowell.ca/|g' "$pHtmlOnly" >"$pWebHtmlOnly"
done 9<"$pWebPageL"
too confused - must break, watch DVD
"$d_bin"'z_History/webSite update.sh' pHtmlL_Howell_create() - Howell webPageL
grep --invert-match "z_Old\|z_Archive\|z_History\|webWork\|code develop_test\|Cool emails\|References\|\/OPM\/OPM\|\/Qnial\/Manuals\/\|\/bin\/Yoonsuck Choe\|\/Sudbury Neutrino Observatory (SNO)\/\|\/System_maintenance\/tex\/tikz-pgf system\/\|\/Pharma/Top 75 Immunotherapy startups_files\/\|\/email programs\/Thunderbird\|\/bogotrainer\/"
>> not all are in : -file="$pHtmlPathExclL769" --invert-match
Where is the test for the 1st line of each file to make sure that it is a webPage?
webSite_get_internalLinksWithFnamLinNum()
{
date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss")
echo >>"$p_log" "$date_ymdhms webSite_get_internalLinksWithFnamLinNum"
pHtmlOnlyL367="$1"
pWebSiteLinkWithFnamLinNumL367="$2"
cat "$pHtmlOnlyL367" | tr \\n \\0 | xargs -0 -IFILE grep -i --with-filename --line-number '\/home\/bill\/web\/' "FILE" | sort -u >"$pWebSiteLinkWithFnamLinNumL367"
}
>> nope, that's not it
see below :
# 17Sep2023 I moved [Transformer NNs, TrNNs_ART] dirs into 'Neural Nets'
# dWeb_get_dWebPageL(no args) - generate pHtmlPath[All_, TrNN]L of Howell's webPages
# does povrL_idx_strTst_cut check of htmls, add to pHtmlPathExclL
>> this looks like the code, but not quite?
+-----+
03Oct2023 continued...
11:10$ bash "$d_bin"'0_test/fileops/fileops test run.sh'
cp: cannot stat '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/fNam_get_fNoExt error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/home.html archivefNam_get_ext error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/home.html': No such file or directory
mv: cannot stat '/media/bill/ramdisk/pBadL_archive_pArchiveL_restore temp.txt': No such file or directory
cp: cannot stat '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/fNam_get_fNoExt error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page blogs.html archivefNam_get_ext error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page blogs.html': No such file or directory
mv: cannot stat '/media/bill/ramdisk/pBadL_archive_pArchiveL_restore temp.txt': No such file or directory
cp: cannot stat '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/fNam_get_fNoExt error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page crazy themes and stories.html archivefNam_get_ext error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page crazy themes and stories.html': No such file or directory
mv: cannot stat '/media/bill/ramdisk/pBadL_archive_pArchiveL_restore temp.txt': No such file or directory
cp: cannot stat '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/fNam_get_fNoExt error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page hosted subsites.html archivefNam_get_ext error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page hosted subsites.html': No such file or directory
mv: cannot stat '/media/bill/ramdisk/pBadL_archive_pArchiveL_restore temp.txt': No such file or directory
cp: cannot stat '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/fNam_get_fNoExt error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page Howell - blog.html archivefNam_get_ext error, isPth : /home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/page Howell - blog.html': No such file or directory
mv: cannot stat '/media/bill/ramdisk/pBadL_archive_pArchiveL_restore temp.txt': No such file or directory
>> oops, I added
fNamer098=$( pth_get_fnam "$pBader098" )
period in :
pArXiv098="$dircty098$fNoExt098 archive.$fExten098"
12:03$ bash "$d_bin"'0_test/fileops/fileops test run.sh'
>> OK - now I can check results
>> looks GOOD! - except it swaps back & forth
after pBadL_archive_pArchiveL_restore, cp short files to z_Archive to start at same place
12:21$ bash "$d_bin"'0_test/fileops/fileops test run.sh'
>> works, but ls -1 doesn't give file size
$ ls --size '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/'
How do I get size in bytes?
see "$d_SysMaint""Linux/files - get attributes.txt"
$ ls -lh '/home/bill/web/bin/0_test/fileops/pBadL_archive_pArchiveL_restore/'
>> good, although too much infor, leave as-is
#08********08
#] 02Oct2023 post-edits re-try : pWebPageL_pStrP_replaceGetBad
pWebPageL_pStrP_replaceGetBad # (no args) clean [pth, link], errorOutputs
12:57$ bash "$d_bin"'fileops run webSite.sh'
+--+
cp: cannot stat '/home/bill/web/webWork/pLnkFail.txt': No such file or directory
webSite_check_internalLinks() warn: pLnkFail.txt no-exist
cat: /home/bill/web/webWork/pLnkFail.txt: No such file or directory
fix diff: /home/bill/web/webWork/z_Archive/pHtmlClassAll_L archive.html: No such file or directory
wc: /home/bill/web/webWork/pLnkFail.txt: No such file or directory
/home/bill/web/bin/fileops.sh: line 2698: 88 + 0 + : syntax error: operand expected (error token is "+ ")
+--+
>> mostly same as last time... still NO output to
"$d_webWork"'pWebPageL_pStrP_replaceGetBad_logCheck.txt'
Again, it looks like pWebPageL_pStrP_replace doesn't work anymore
why???
+--+
NO output to
"$d_webWork"'pWebPageL_pStrP_replaceGetBad_logCheck.txt'
geany, not sed!
change :
nWebPag176=$( wc -l "$d_webWork"'pHtmlPathAll_L.txt' | sed 's|([0-9]*) .*|1|')
to:
nWebPag176=$( wc -l "$d_webWork"'pHtmlPathAll_L.txt' | sed 's|\([0-9]*\) .*|\1|')
13:19$ wc -l "$d_webWork"'pHtmlPathAll_L.txt' | sed 's|\([0-9]*\) .*|\1|'
158
>> OK
+--+
diff: /home/bill/web/webWork/z_Archive/pHtmlClassAll_L archive.html: No such file or directory
baloney - the file IS there!! pHtmlClassAll_L archive.txt
>> oops...
+--+
/home/bill/web/bin/fileops.sh: line 2698: 88 + 0 + : syntax error: operand expected (error token is "+ ")
nIntExtFal=$(( $nLnkInt + $nLnkExt + $nLnkFal ))
also change :
nHrfImgBad=$(( $nLnkHrf + $nLnkImg + $nLnkBad ))
nIntExtFal=$(( $nLnkInt + $nLnkExt + $nLnkFal ))
to :
nHrfImgBad=$(( $nLnkHrf176 + $nLnkImg176 + $nLnkBad176 ))
nIntExtFal=$(( $nLnkInt176 + $nLnkExt176 + $nLnkFal176 ))
+--+
pWebPageL_pStrP_replace doesn't work anymore
>> what the sam hill?
povrL_pStrP_replace 1 1 "$d_webWork"'pHtmlPathAll_L.txt' "$d_webWork"'pStrPAll_L change.txt'
pLog384="$d_bin"'povrL_pStrP_replace funcFamily log.txt'
787 lines - it isn't [archive, clear]ed
158 lines now - OK
still doesn't solve failure of povrL_pStrP_replace
povrL_pStrP_replace()
povr_pStrP_replace "$bolArXiv384" "$bolChrCd384" "$povr384" "$pStrP___384"
Looking at Ukraine-Russia - need quotes around fname-only links!
#08********08
#] 02Oct2023 build new 'pStrPAll_L change.txt'
09:30$ bash "$d_bin"'fileops run webSite.sh'
/home/bill/web/Personal/130726 Deer collison/Car collision with a deer.html:58:
/home/bill/web/Personal/181211 Van versus Semi collision/181211 Van versus Semi collision.html:49:
>> doesn't help, need more general search for image path
Just use $ linux -> 2 grep :
09:45$ find "$d_web" -maxdepth 6 -type f -name "Hussar on the map of South-Central Alberta.jpg" | grep --with-filename --invert-match "z_Old\|z_Archive\|Conference guides\|webWork\|Cool emails" >"$d_temp"'grep tempLog.txt'
(standard input):/home/bill/web/Personal/Hussar on the map of South-Central Alberta.jpg
+-----+
Edit because of fNam changes : pWebPageL_pStrP_replaceGetBad_logCheck()
geany search : $log_ymdhms176 replace : archive
Revamped function, now [run, check]
pWebPageL_pStrP_replaceGetBad
11:41$ bash "$d_bin"'fileops run webSite.sh'
+--+
? cp: cannot stat '/home/bill/web/webWork/pLnkFail.txt': No such file or directory
... list of webPages
? cat: /home/bill/web/webWork/pLnkFail.txt: No such file or directory
? diff: /home/bill/web/webWork/z_Archive/pHtmlClassAll_L archive.html: No such file or directory
chg wc: '/home/bill/web/webWork/pLnkBad archive.txt': No such file or directory
? wc: /home/bill/web/webWork/pLnkFail.txt: No such file or directory
what? /home/bill/web/bin/fileops.sh: line 2699: 3 /home/bill/web/webWork/pLnkHrf.txt: division by 0 (error token is "home/bill/web/webWork/pLnkHrf.txt")
+--+
>> pWebPageL_pStrP_replace didn't work!
>> diffs - nothing (didn't change)
...
pHtmlPathAll_L.txt (158)
nc pLnkBad.txt
none pLnkFail.txt - none created
zero pLnkExt.txt
n pLnkHrf.txt - almost none (3)
pLnkImg.txt - many, and many bad
pLnkInt.txt (88)
...
nc = no change
+-----+
fixes
pInn_archiveLocal_pDateMod "$d_webWork"'pHtmlClassAll_L.txt'
pInn_archiveLocal_pDateMod "$d_webWork"'pLnkFail.txt'
>> these are in dWebWork_archiveLocal(), but didn't work?
+--+
dWeb_get_pWebPageL()
find "$d_web" -type f -name "*.html" | grep --file="$pHtmlPathExclL769" --invert-match | sort -u >"$pHtmlPathAll_L769"
>> is this wrong?
--file="$pHtmlPathExclL769"
>> may be sufficient?
+--+
pLnkFail.txt
webSite_check_internalLinks()
...
if [ -f "$pFailL366" ]; then
pInn_archiveLocal_pDateMod "$pFailL366"
rm "$pFailL366"
...
while IFS='' read -u 366 pLink366; do
if ! [[ -f "$pLink366" || -d "$pLink366" ]]; then
echo "$pLink366" >>"$pFailL366"
fi
done 366<"$pLinkL366"
webSite_check_internalLinks log.txt
webSite_check_internalLinks() warn: pLnkInt.txt no-exist
>> ? but it does exist, should state pLnkFail.txt
>> fixed in code
depends on pLnkInt.txt
pWebPageL_pStrP_replace()
{
date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss")
echo >>"$p_log" "$date_ymdhms pWebPageL_pStrP_replace.txt"
povrL_pStrP_replace 1 1 "$d_webWork"'pHtmlPathAll_L.txt' "$d_webWork"'pStrPAll_L change.txt'
}
>> are pLnk[Int, Fail].txt in this list? - not html..
>> nyet
cp: cannot stat '/home/bill/web/webWork/pLnkFail.txt': No such file or directory
webSite_check_internalLinks() - comes back to this
+--+
pLnkFail.txt
pWebPageL_pStrP_replaceGetBad_logCheck
change :
nHrfImgBad=$(( nLnkHrf + nLnkImg + nLnkBad ))
nIntExtFal= (( nLnkInt + nLnkExt + nLnkFal ))
to :
nHrfImgBad=$(( $nLnkHrf + $nLnkImg + $nLnkBad ))
nIntExtFal=$(( $nLnkInt + $nLnkExt + $nLnkFal ))
oops - change symCode [, 901] to 176
+--+
pWebPageL_pStrP_replaceGetBad_logCheck()
wc: '/home/bill/web/webWork/pLnkBad archive.txt': No such file or directory
>> remove ' archive'
+-----+
olde code
# diff "$d_webWork"'pLnkMoz.txt' "$d_webWork"'z_Archive/pLnkMoz archive.txt' --suppress-common-lines >>"$pLog176"
webSite_get_links()
# pLnkMoz901="$d_webWork"'pLnkMoz.txt'
# webSite_get_links_run "$pLnkMoz901" "$pBadMoz901" ' SRC\=\"'
#08********08
#] 30Sep2023 fix webSite_get_links_run() in filops.sh
16:39$ bash "$d_bin"'fileops run webSite.sh'
cat: '/home/bill/web/bin/0_test/fileops/pHtmlPathAll_L target1.txt': No such file or directory
~
>> went OK by simple appearance
+-----+
01Oct2023
webSite_get_links # (no args) internal links [extract , check]
16:55$
>> oops - ran echo >>"$pLog801" "$pHtmAll901"
webSite_get_links # (no args) internal links [extract , check]
17:07$ bash "$d_bin"'fileops run webSite.sh'
>> OK
webSite_check_internalLinks # (no args) check if-valid internal links
17:15$ bash "$d_bin"'fileops run webSite.sh'
pWebLinkFailL366="$d_webWork"'pLnkFail.txt' is empty!
>> BS, this is WRONG!
'pLnkFail archive.txt' :
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p030tbl01.02 complementary streams: What- [rapid, stable] learn invariant object categories, Where- [labile spatial, action] actions.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p035fig01.22 Presentation [normal, silence, noise replaced].png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p392fig11.30 How multiple scales vote for multiple depths, scale-to-depth and depth-to-scale maps.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p428fig12.25 ARTSPEECH: auditory-articulatory feedback loop & imitative map, [auditory, motor] dimensionally consistent, motor theory of speech.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p505fig13.32 Behavioral contrast: [response suppression, antagonist rebound] both calibrated by shock levels.png
/home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossberg's Consciousness: video script.html
/home/bill/web/webWork/pMenuTopHelp TrNNs_ART.html
>> known files known not-to-exist?
but NO new 'pLnkFail.txt' :
>> why not?
17:44$ bash "$d_bin"'fileops run webSite.sh'
~
>> FAILURE to create pWebLinkFailL366="$d_webWork"'pLnkFail.txt
18:02$ bash "$d_bin"'fileops run webSite.sh'
webSite_check_internalLinks() error: pLnkInt.txt no-exist
/home/bill/web/bin/fileops.sh: line 2554: : No such file or directory
~
18:02$ bash "$d_bin"'fileops run webSite.sh'
>> oops, forgot to rename a file in part of webSite_check_internalLinks()\
18:46$
# first backup pStrP:
#pInn_archiveLocal_pDateMod "$d_webWork"'pStrPAll_L change.txt'
manual build pStrP from both pLnk[Bad, Fail].txt
>> don't need pLnkFail.txt -> images, captioned that I have to re-create later :
+-----+
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p030tbl01.02 complementary streams: What- [rapid, stable] learn invariant object categories, Where- [labile spatial, action] actions.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p035fig01.22 Presentation [normal, silence, noise replaced].png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p392fig11.30 How multiple scales vote for multiple depths, scale-to-depth and depth-to-scale maps.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p428fig12.25 ARTSPEECH: auditory-articulatory feedback loop & imitative map, [auditory, motor] dimensionally consistent, motor theory of speech.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p505fig13.32 Behavioral contrast: [response suppression, antagonist rebound] both calibrated by shock levels.png
/home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossberg's Consciousness: video script.html
/home/bill/web/webWork/pMenuTopHelp TrNNs_ART.html
Therefore, just put pLnkBad.txt into pStrP & fix.
+-----+
olde code
if [ -f "$pMixTmp901" ];then
rm "$pMixTmp901"
fi
nItr=0
bolLnk=1
while [ 1 -eq "$bolLnk" ]; do
nItr=$(( nItr + 1 ))
# echo "$linMix901" >>"$pMixTmp901"
# diff "$pMixTmp901" "$pLnkTmp901" --suppress-common-lines | grep ">" | sed 's/> //' >"$pDifTmp901"
# grep "$sedExpr901" "$pDifTmp901" >"$pLnkWWk901"
# cp "$pLnkWWk901" "$pBadTmp901"
# rm "$pMixTmp901"
# if [ -s "$pLnkWWk901" ]; then
# bolLnk=1
# else
bolLnk=0
# fi
# if ! [ 6 -le "$nItr" ]; then
# break
# fi
done
#08********08
#] 27Sep2023 pHtmlPathAll_L upload onLine - online webPages, this MUST be run ONLY from :
# "$d_PROJECTS"'bin - secure/lftp update specified dir.sh'
It worked GREAT!! Many links don't work for captioned-iages, but it's a start.
+-----+
olde code
27Sep2023
useless - done by dWebPage_update_dWebOnly in "$d_bin_secure" :
# update_dWebHtmlOnly(no args) - rm html in dWebOnly to make sure it's "clean", cp current
# otherwise old html will be re-sent to webSiteOnline
# 17Sep2023 inital
update_dWebHtmlOnly()
{
date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss")
echo >>"$p_log" "$date_ymdhms update_dWebHtmlOnly"
d_webOnly="$d_PROJECTS"'webHtmlOnly'
pWebPageL="$d_webWork"'pHtmlPathAll_L.txt'
find "$d_webOnly" -type f -print0 | xargs -0 rm -f
# transfer only webPages from d_web to d_webOnly
while IFS='' read -u 9 pWebPage; do
pWebOnly=$( echo "$pWebPage" | sed 's|/home/bill/web/|/home/bill/PROJECTS/webHtmlOnly/|' )
# echo "$pWebOnly"
cp -p "$pWebPage" "$pWebOnly"
done 9<"$pWebPageL"
}
# pHtmlPathExclL - not necessary, as pHtmlPathAll_L is a specified list of files
pTmp="$d_temp"'dWeb_update_dOnline html temp.txt'
#08********08
#] 27Sep2023 update_dWebHtmlOnly(no args) - [edit, run]
update_dWebHtmlOnly(no args) - rm html in dWebOnly to make sure it's "clean", cp current
I added : # transfer only webPages from d_web to d_webOnly
while IFS='' read -u 9 pWebPage; do
pWebOnly=$( echo "$pWebPage" | sed 's|/home/bill/web/|/home/bill/PROJECTS/webHtmlOnly/|' )
# echo "$pWebOnly"
cp -p "$pWebPage" "$pWebOnly"
done 9<"$pWebPageL"
19:16$ bash "$d_bin"'fileops run webSite.sh'
cp: cannot create regular file '/home/bill/PROJECTS/webHtmlOnly/Neural nets/callerID-SNNs/callerID-SNNs.html': No such file or directory
cp: cannot create regular file '/home/bill/PROJECTS/webHtmlOnly/Neural nets/callerID-SNNs/nomenclature.html': No such file or directory
>> oops, dir is lacking
19:17$ bash "$d_bin"'fileops run webSite.sh'
>> perfect?
#08********08
#] 27Sep2023 iterate : new "$d_webWork"'pStrPAll_L change.txt'
+-----+
webSite_check_internalLinks(no args) check if-valid internal links
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p030tbl01.02 complementary streams: What- [rapid, stable] learn invariant object categories, Where- [labile spatial, action] actions.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p035fig01.22 Presentation [normal, silence, noise replaced].png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p128fig04.04 reflectance changes at contours: fill-in color contours.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p392fig11.30 How multiple scales vote for multiple depths, scale-to-depth and depth-to-scale maps.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p428fig12.25 ARTSPEECH: auditory-articulatory feedback loop & imitative map, [auditory, motor] dimensionally consistent, motor theory of speech.png
/home/bill/web/Neural nets/TrNNs_ART/images- captioned/p505fig13.32 Behavioral contrast: [response suppression, antagonist rebound] both calibrated by shock levels.png
/home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossberg's Consciousness: video script.html
/home/bill/web/webWork/pMenuTopHelp TrNNs_ART.html
>> not bad, most are missing /images- captioned/
Two need fixing :
/home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossberg's Consciousness: video script.html
/home/bill/web/webWork/pMenuTopHelp TrNNs_ART.html
pWebPageL_str_extractPthLWithStr_pout '/videoProdn/Grossberg's Consciousness: video script.html'
>> not easy to search this one
/home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossbergs Consciousness: video script.html
>> it was in
pWebPageL_str_extractPthLWithStr_pout '/web/webWork/pMenuTopHelp TrNNs_ART.html'
/home/bill/web/Neural nets/TrNNs_ART/webWork/bash script: put [caption, reference]s on [figure, table]s.html:27:copyrights