This is a bit of a meta question since I think I have a solution that works for me, but it has its own downsides and upsides. I need to do a fairly common thing, catch SIGSEGV on a thread (no dedicated crash handling thread), dump some debug information and exit. The catch here is the fact that upon crash,
How to find what folder process can’t open
I have an application that is not functioning, because it can’t find or open the folder. But it does not print the folder path. How i can find out what folders it tries to open or locate? Probably folder does not exist, or has wrong permission. But to fix this i need to know what folder application is o…
echo does not print a variable in bash
I’m facing a very strange issue. I have 2 files ber_log_before.txt and ber_log_after.txt. Their contents are ber_log_before.txt ber_log_after.txt There are $ it’s normal. Then I wrote a basic bash command to parse them Why 1st val 14 2em val 24 is not echoed??? If I replace by Then at least I have…
Renjin can’t load pckages
I’m a newbie with Renjin. I’m trying to use Renjin in a Java application. I’m trying to develop the example showed here. I’m compiling with gradle, as recommended in the renjin’s web page. So, with gradle build all is ok when I run gradle build. But, when I want run the applicati…
job can’t be submitted inside sge file
I want to submit a sge job via sge file. For example, I have run.sge file as follows: And run_inp.sge file as follows: Whenever I submit job via I got this error: But if I submit run_inp.sge directly, it works fine: My question is that can I submit sge jobs inside a sge job? If not, is there alternative way
How do I escape spaces in file paths when iterating in a for loop with a shell script in Linux?
I am writing a shell script in Linux that takes a file path and iterates over all files in the path. When a file is found it performs some logic. If a folder is found the function calls itself passing the folder as an argument. It works well unless there is white space in the folder path. Answer Double quotes
Bash Create Directories/Subdirectories Using Two Lists
I would like to create a number of directories, each with a number of subdirectories based on two lists using Bash. Currently, the below code achieves this result: Yields Question: Is there a cleaner (non-single-line) way to achieve the same result, perhaps storing the two lists as arrays or variables and usi…
SSH: How to replace an empty passphrase with a non-empty passphrase in script
In script I need to add a passphrase to a pirvate key that has empty passphrase. I have just tried this: Answer ssh-keygen has a command-line option to specify the new passphrase (and the old one, if the key already has a passphrase): ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] [……
How to connect an embedded device to Internet via a Windows 7 PC’s Shared Internet Connection (ICS)? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
creating a scheduled task to create an incremental backup of our system files every day [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …