dCore Import Debian Packages to Mountable SCE extensions > dCore X86
Empty '.filetool.lst'
Jason W:
Ok, I hope I am not sounding terse, just trying to figure out what we are wanting to do in what situation. :-)
What you just said is very easy to code in, and makes sense. And at the beginning of filetool.sh, will be very simple to give something like this:
If empty /opt/.filetool.lst or does not exist /opt/.filetool.lst; then create /opt/.filetool.lst if needed and then echo "opt/.filetool.lst" to /opt/.filetool.sh so it will back up itself otherwise empty and not interfere with reboot.
I can do that tonight.
Oh, and thanks sm8ps for your time you are spending with dCore and your effort to improve it. Keep it up!
Rich:
Hi Jason W
--- Quote ---Ok, I hope I am not sounding terse, ...
--- End quote ---
Just sounded like some good old fashioned brainstorming to me. :)
sm8ps:
--- Quote from: Jason W on May 08, 2015, 09:47:09 PM ---What you just said is very easy to code in, and makes sense. And at the beginning of filetool.sh, will be very simple to give something like this:
If empty /opt/.filetool.lst or does not exist /opt/.filetool.lst; then create /opt/.filetool.lst if needed and then echo "opt/.filetool.lst" to /opt/.filetool.sh so it will back up itself otherwise empty and not interfere with reboot.
--- End quote ---
That sounds very reasonable to me. Nice twist to have "/opt/.filetool.lst" in '/opt/.filetool.lst'!
--- Quote from: Jason W on May 08, 2015, 09:47:09 PM ---Oh, and thanks sm8ps for your time you are spending with dCore and your effort to improve it. Keep it up!
--- End quote ---
You are very welcome. Same to you!
Cheers!
sm
Jason W:
There is a catch. A zero length file is different than a file with 2 or more blank lines. So with a test for the file being greater than zero length, or for the word count, empty spaces are different than just a blank file. No clear way to distinguish between a file with spaces and one with text.
I will be honest, this is not something I wish the spend days on as it has never been an issue before in the over 10 years that the this backup routine has existed.
sm8ps:
--- Quote from: Jason W on May 09, 2015, 07:55:59 AM ---There is a catch. A zero length file is different than a file with 2 or more blank lines. So with a test for the file being greater than zero length, or for the word count, empty spaces are different than just a blank file. No clear way to distinguish between a file with spaces and one with text.
I will be honest, this is not something I wish the spend days on as it has never been an issue before in the over 10 years that the this backup routine has existed.
--- End quote ---
I fully see your point. Let's close the issue! Thanks for giving it that amount of thought, though!
On the wiki-page, I included the recommendation to at least add "opt/.filetool.lst" into an otherwise empty '.filetool.lst'. That is fully 101-compatible. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version