After a conversation with @JeffSchaller I did my best to improve my following question which was heavily downvoted. I ask from those who downvoted to consider this step:
I use the following code which is part of this script that uses me to update my WordPress websites:
#!/bin/bash
drt="/var/www/html"
for dir in ${drt}/*/; do
if pushd "$dir"; then
command1
command2
popd
fi
done
Background
I learned of the specific pushd-popd pattern...
I didn't realize this would be so difficult. I'm just using tar. I have two pieces of data, one's a large payload of pcap data, the other is some additional metadata in the form of a python pickled file. My goal goal is to create a .tar file containing both files, and compress with with XZ.
I wa...
So usually when we want a portable USB we'll prepare two USB sticks, one for the installer, one for where you install Linux.
But now, I want to install solus but only got a 128GB USB which is used to install the Linux on it. So now I'm wondering, is it possible to split about 16GB from local dis...
Installing the installer on disk to be able to install linux on USB key, I'm pretty sure there's an eaisier way this solution sounds so wrong that it must be an other way
@Kiwy you can’t write an answer consisting solely of a link (unless the OP is asking for a link, e.g. to some project), but pointing readers to external resources is fine
unix.stackexchange.com/q/439720/53092 Could someone rephrase my comment in the understandable way ? I feel so dumb in those situation where I could help but the OP shows a propensity not to answer a simple question
I'm going to be sarcastic and potentially when sarcastic I can sound a lot meaner than I'd like to
@Kiwy It's probably better to avoid sarcasm. Polite and "professional" is probably the best way to go. It's bad enough that online it's easy to sound sarcastic even when not meaning to.
@Kusalananda I wondered if anyone has done study on that matter I would be curious to read the result of serious study on this problem. The fact that the tone is not present is indeed a great lose of meaning
@FaheemMitha There are studies on cultural differences giving rise to miscommunication in spoken languages (for example), so why not in written communication?
I'm around, though intermittently afk, and also I don't know anything about Borg except what I read between when you posted your message and when I posted this one. :) I'm interested though...
So, just to give the background here (in case anyone is interested) I've had local Borg Backup scripts running for a while. And I've even had to restore from backups occasionally because of my experiments with Mercurial.
@Kusalananda I don't actually have anything to debug at the moment.
However, some months or maybe years ago (I forget), I tried setting up remote backups for Borg, but it didn't gel properly, for whatever reason. And because I'm a wuss, I dropped it. Also, I was doing other things...
But recent events have made me feel that I should try to get by backups in order. So I'm going to try and spend a little time right now to figure it out.
BTW: I've had to rename some files in /etc/fonts/conf.avil on two machines now — is it just me, or should I be reporting a bug somewhere?
root@Zia:/etc# git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
renamed: fonts/conf.avail/65-0-fonts-beng-extra.conf/65-0-fonts-beng-extra.conf -> fonts/conf.avail/65-0-fonts-beng-extra.conf
renamed: fonts/conf.avail/65-0-fonts-deva-extra.conf/65-0-fonts-deva-extra.conf -> fonts/conf.avail/65-0-fonts-deva-extra.conf
renamed: fonts/conf.avail/65-0-fonts-gujr-extra.conf/65-0-fonts-gujr-extra.conf -> fonts/conf.avail/65-0-fonts-gujr-extra.conf
So, if there is anyone here, I have a simple shell script type question.
(He said, peering into the void.)
This is my current backup script. But only the first part completes. I was trying to find an old copy of my cron output, but I seem to have deleted all of them. Which is quite impressive, considering I do it manually.
$ cat selfmod
#!/bin/bash
echo 'echo hello world' >>"$0"
$ ./selfmod
hello world
$ ./selfmod
hello world
hello world
$ ./selfmod
hello world
hello world
hello world
$
I'm sorry to just barge in here, but might anyone know if shared mappings created with mmap ensure synchronous access between processes? I imagine it should, right?
I was considering protecting process memory, and using signal handlers to disassemble and modify the (to-be-restarted) instruction in the process context such that it would run a synchronization routine after a write using pipes.
@FaheemMitha No, it's not trying to remove .., it's just informing you that . and .. are special and that it can't remove these. Then it says it's skipping .
I've spent a fair amount of time asking and answering C questions before. I find the user base that trawls them are pretty harsh when it comes to judging "good" questions and I'm often left without answers. Judgment such as "This isn't C related so I'm closing it" for subtleties like being more of an Operating Systems specific questions.
@Micrified No, not really. I think of them as more Windows... They have some Unix/Linux questions there too (our scopes overlap), but mostly they're Windows.
Well, I can attest to the C tag being one of the worst to try and participate in. The feeds are full of homework questions for the most part, and I feel like it's maybe partially why those answering it are so cynical.
Now obviously you should follow the guide, but sometimes certain programs or questions aren't easy to replicate exactly or the code involved is so large it's usually not very useful to put in the question for readability.
@FaheemMitha It filters out (removes) the Checking segment lines from the standard error stream of borg check. Without merging the stdout and stderr streams into a single output stream.
@FaheemMitha Complain, definitely. But mostly I'd prefer a backup script to continue on error, at least if its safe. E.g., just because backup 2 out of 10 failed, I still want 3–10 tried!
Makes sense. I had heard POSIX guaranteed that but I oddly had trouble finding it. Looking at various sections, it uses the phrase "the application" to mean the script or commands the shell is running, throughout the document, but I don't think I had put two and two together.