I have made a new script you might be interested in
Recentchanges v1.0 final release .xzm at bottom
https://drive.google.com/file/d/1l-l1rj ... sp=sharing recentchanges /opt/porteus-scripts/
calls on
https://drive.google.com/file/d/1gDtvO- ... sp=sharing compilesearch.sh /usr/local/save-changesnew/
https://drive.google.com/file/d/1NyDid7 ... sp=sharing recentchangessearch.sh /usr/local/save-changesnew/
recentchanges aka Developer buddy
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 search /home/guest/myfile.txt Search for files newer than myfile.txt Filtered files so not to show unnecessary files
recentchanges search myfile.txt
recentchanges compile dynamically build a filter. shows where files and how they slip past a filter Builds you custom sed statements for /opt/porteus-scripts/recentchanges filters
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?
Developer buddy version .9610 initial version start of building the command
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
v 0.9930 final release
- Dynamically builds a filter in /home/guest/.config/save-changesnew and generates sed statements for copy paste into /opt/porteus-scripts/recentchanges
xCustomFilterProfile What you should look to filter ie they slipt paste the filters. Total from backwards to forwards.
CustomFilterProfileSeds
xSysDifferences"$deltaDIFF"secondsxSearch Total system changes from backwards to forwards. No diff file output. the program will warn user if there are differences from back to forward.
xSysDifferences"$deltaDIFF"secondsSeds
xCustomFilterInstructions
https://drive.google.com/file/d/19jcH4I ... sp=sharing recentchanges .xzm
and implemented in x86_64 modules section just released v1.0
viewtopic.php?p=102029#p102029