The second question below only has the "centos" tag at the moment. Any thoughts on adding the "hang" tag (ten questions only so far), or some other tag?
Assumptions
Instructions
A dumb hack (which assumes your tasks are hung on filesystem/disk access)
1. Assumptions
1.1) By default, the Linux kernel has code that reports various types of crash or hang.
All of them can show the immediate problem and print a call chain on the "local console"...
When I faced similar issue I've created a small script like this (it writes every second the date and list of process running with its CPU and RAM usage):
#!/bin/sh
while true
do
date
ps faux
sleep 1
done >> /a/log/file
and I let it run as a background program. This would h...
* I mean should I add the "hang" tag to the second question, do you think?
> Starts program prog in a separated process and returns a file handle that you can use to read data from this program (if mode is "r", the default) or to write data to this program (if mode is "w").
Though LuaTeX is using 5.2, and therefore, so am I.
So popen is calling libc's popen, and execute is calling libc's system.
@FaheemMitha because there's a billion options for grep, and a billion commands besides grep and ... well, you've never needed it before? Just guessing :)
hey so for my ubuntu machine I had a crash, but the notification didn't allow me to copy all the details to the clipboard, so I only have screen shots, is the an open source optical scan text recog package for Linux?
i was certain the processing.org had one in their example library, so i guess i could download that for Linux have a go with that, its just that there are a lot of fields in the report i want to keep for learning what they all mean, and its going to be a mammoth annoyance to type it all out by hand from the screen shots
oh fantastic no fortunately its all black standard text with a white background, but annoyingly i was about to select the text in each field, but unable to copy it to the clipboard but if this works for clearly typed text it should be perfect thanks
but python language certainly seems like something i will have to learn, so many references to it in the crash details, the actual commands for which didn't even involve python as far as i was aware
interestingly, this kali distribution that supposedly meant to be the be all and end all hasn't been much use to me in the way of learning about Linux. They have restricted use of the tor browser running as root, why?
also was redirected to a fake tor project website when attempting to download it, had to put the proper address in manually because the browser provided kept directing me to another website, it says its firefox, but it looks like the one for mac computers lol
its not possible an entire Linux distribution would be made satirically for all the wannabe instant hackers out there is it? it feels satirical and was marketed to appeal to lame people but maybe im just being an asshole. there was a guy with a hoodie and a devious grin on the download promo so i find that satirical
i do like the desktop layout though that is really neat, like how you can have multiple desktops and select one appropriate, that's very user friendly i think
redhat and mint, are these open source?
@FaheemMitha sorry tesseract isn't found in what ive got thus far in my sources.list file, what do i need to add?
yeah i got a long list of hits using the command you mentioned, but it still says it cannot find the package when i use sudo apt-get install tesseract4
sorry, still haven't got around to working out how to allow the clipboard from my VMs to be pasted in my host machine's window, but this is the screenshot
@FaheemMitha well the list from the apt-cache search stated that to be the name of the OCR library of tools but yep thanks tesseract-ocr is installing now
@Kiwy I only upvoted you after PhilipCouling suggested it could be a fork-bomb :). When I read questions like that, I like to see a bit of explanation e.g. that 100% CPU condition would not always cause this problem, but e.g. maybe it would if there were 100,000 CPU hog processes. And I did not follow your explanation about why ESX disk lags could show up as high CPU usage.
This isn't really on topic, but does anyone know how to force a popen to complete? Technically it's Lua, but the io.popen command is apparently just a wrapper around the libc popen.
It's a bit annoying.
Closing the file object does the trick, apparently. Thankfully.
Hands up everyone who thinks programming is annoying.
from the bash, if we have a variable named string, and want to output only the numeric characters it contains, we use ${string//[!0-9]/}, what must I add to this to include a list of delimiters such as the comma?
ok thanks I am actually reading the bash manual to get the general idea btw and I'm writing something up in maple that will help a lot, it's really core concepts missing in my understanding that were probably taught to others in high school computing classes that's holding me back I think
@sourcejedi Well CPU alone is not really a good measure to simply evaluate the responsivness of your system. In this case load is usually a way better value to look at. If for any reason a disk become unresponsive, and your application is working with strong IO, the load could increase dramatically while the CPU usage doesn't really increase. That would lead to huge load with poor CPU usage. And this could in the end lead to completely unresponsive system.
However I misexplained it and use CPU for load, which is confusing indeed.
with the wc command, how do you suppress the filename from the end of the output, so for wc -c filename the output is the byte count followed by filename, I only want it's byte count as I need to store it as an integer variable
@FaheemMitha horseman get a horseman they are the value of a man and a horse combined
@Kusalananda ok well what I was trying to get at is I always miss obvious things that come second nature to others, a hypothetical computing class was a nicer way of putting it :-(
@Adam If you wanted to take a computing class, you could.
Presumably.
If wonder how many computing classes the other people here have taken.
BTW, random trivia question. Does anyone here buy computer books any longer? I stopped quite a while back. I bought "Practical Common Lisp" in 2005. That was actually a good buy.
@Adam "meta data", in general, refers to information about data. File meta data is data that is not actually part of the contents of the file but stored in the file's directory entry. This includes its size, its various timestamps, and its name.
Oh, and permissions and ownership etc. too of course.
@Kusalananda yeah thanks I've been reading the wiki page on it, essentially data about data great all I need is a new reason to fall into infinite regress
@MichaelHomer thanks yeah basically my current understanding summed up
hmmm im feeling especially uncomfortable with the term e-Government