I have made a new script you might be interested in
https://drive.google.com/file/d/1l-l1rj ... sp=sharing recentchanges
calls on
https://drive.google.com/file/d/1gDtvO- ... sp=sharing compilesearch.sh
https://drive.google.com/file/d/1NyDid7 ... sp=sharing recentchangessearch.sh
tared up the .xzm
https://drive.google.com/file/d/19jcH4I ... sp=sharing
recentchanges aka Developer buddy v 0.9740
usage
recentchanges s Grab all files in s seconds or newer also include search to /tmp. Will show differences between last search and also the current search
recentchanges all files 5 minutes or newer includes search. Goes to /tmp "" ""
recentchanges search Search files only 5min or newer. goes to /Downloads Will show differences ect
recentchanges search s Search files s seconds or new files only /Downloads
recentchanges compile dynamically build a filter. shows where files and how they slip past a filter
Supports deepscan mode and regular scan. With or without file timestamps
recentchanges -v version number
recentchanges --help or -h usage information
it will pull all files 5 minutes or newer into a temporary staging directory. It will then make a module rntfiles.xzm and put it in /tmp along with a file manifest of the xzm and a transfer log to the temporary staging directory.
Uses? lets say you compiled a program
recentchanges 30 pulls all new files 30 seconds or new right into rntfiles.xzm
dont know where a file is or what changed? or where your compiled files ended up? type recentchanges to find out exactly where and what happened.
files you get
/tmp
rntfiles.xzm <------------------------what changed? or your new program
rntfilesmanifest <-------------------------------your .xzm file manifest
rntfilesTransferlog <-------------------------------------file transfer to temporary storage directory to verify pulling went ok
rntfilesxSystemchanges5 or 300 <---------------------------------------if you specified seconds
rntfilesxSystemDiffSinceLast5 or 300 <------------------------------------ Exact changes since last 300 ie 1 or 2 files?
recentchanges aka Developer buddy version .9610
https://drive.google.com/file/d/1dLtdqp ... sp=sharing
if a search is called and no files are new it will leave the old rntfiles.xzm. If there are new files it will bundle it up and all pertinent logs including xSystemChanges into a unique dir in /tmp. to not overwrite a rntfiles.xzm
if you type recentchanges and 3 minutes later type recentchanges it will take your old search compare it to the new one and spit out a difference file. xSystemDiffSinceLast5
it will clear out only searches so if you type recentchanges or recentchanges 60 it will clear old search such as recentchanges 3600
if a file no longer exists it conveniently prints
2025-02-05 20:40:09 /home/guest/.xsession-errors
File does not exist /home/guest/.cache/mesa_shader_cache_db/part0/mesa_cache.idx
so this tells you its a cache item it was there for a split second and disappeared. Then with xSystemDiff you can see ok these 5 files are the only new files on my entire system. and thats without filters. so you can see how clean rntfiles.xzm will be to pull.
you could use this to dynamically build filters in the script for rntfiles.xzm'
future plans
recentchanges search or search 300 will stictly search and if there are new files wont make rntfiles.xzm
recentchanges compile will dynamically build a filter present for the system and store it in a configuration file for the user to use
I would like to learn python and do some further work with that as its starting to get complicated and bash scripting may not be the best
v 0.9740
- added a deepscan mode. it will search 60 seconds back and 300 seconds ahead. So while you use the system it will report what files are being created. it will output the exact differences and append search with other search ie 60 seconds with the 300. then outputs a filter recommendation ie what slipped through the filter. Also outputs the total system changes without the filter.
regular scan is 30 seconds back and 60 seconds ahead. then outputs the filter with instructions in /home/guest/.config/save-changesnew
xCustomFilterProfile <-------- what slipped through the filter during the 360 seconds search
xSysDifferences360seconds <--------- full system changes unfiltered (360 seconds) appends 60 to the 300 only unique file instances
xCustomFilterDiff <--------- differential from 60 back and 300 ahead what changed during the 300 seconds ie made it through the filters
xCustomFilterInstructions <---------- suggestions