« first day (2116 days earlier)      last day (2821 days later) » 

5:20 AM
OK, quick question, if variables are set inside of scripts that are run via 'source', can the variables be accesses from that session?
Because when I run a script that sets a variable I can access it under normal conditions (via echo'ing the variable), but if I loop it in the background, I can't access it (echo it)...
 
cas
6:06 AM
sourced scripts are run as part of the main script, so share the same global environment. remember, though, that anything run in a sub-shell (including pipes) won't be able to affect the parent's environment. /dev/chat isn't for questions, though. if you have a question, ask it
 
 
9 hours later…
3:12 PM
@cas Can they be sold for the same? If so.... I have some previously-worthless Internet points to dispose of! :-)
 
3:26 PM
@plugwash nice job with edits!
 
 
1 hour later…
4:31 PM
Ok, this has been an interesting question!
4
A: Why isn't rsync using delta transfers for a single file across a network?

derobertSummary Databases tend to keep a lot of metadata, organizational data, etc. An insert is very unlikely to be a simple append, like it would be with a text file. Testing SQLite shows it behaves that way, in both WAL and non-WAL modes. This leads to rsync having to sync a lot more data than you'd ...

 
Nice!
 
5:31 PM
@derobert Well, the poster was making assumptions that (probably) weren't true.
But I'm still fuzzy what he was trying to transfer.
@derobert Were you testing a SQLite dump?
 
@FaheemMitha no, I was testing a sqlite file, not a sql dump
 
@derobert Oh, the actual db file? Ok.
That wasn't entirely clear. And what was the poster trying to do?
 
@FaheemMitha the same, AFAICT
 
He said a log file in a SQLite db. But an SQLlite db is just a file, afaik.
 
@FaheemMitha yeah, OP is storing logs in SQLite
 
5:35 PM
@derobert Oh, he's storing logs in an SQLite db? Ok. Again, that wasn't entirely clear.
Though people accuse me of being literal-minded. So...
 
> I have a large log file (around 600 MB) that I am trying to transfer across a cellular network. Because it is a log file it is just appended to (although it is actually in an SQLite database with only INSERT being performed, so it isn't quite as simple as that, but with the exception of the last 4k page (or maybe a few) the file is identical each time.
that's wordy as #@!(#(8, but pretty clear it's logs in a SQLite database
 
> a log file ... in an SQLite database
I suppose. But it is a bit obfuscated with all the extra verbiage.
It's not clear why he's storing a log file in a SQLite db though. Presumably it isn't the only thing in there.
 

« first day (2116 days earlier)      last day (2821 days later) »