From Nagios I downloaded its html file by using wget command and then I converted that htmlfile to Textfile by using following code: then I cut the first 10 lines becoz I dont want that text and I got below textfile output I have to merge two rows into single row not for all lines only for particular output f…
Tag: linux
how to change springboot application start directory?
I run a springboot application as service on CENTOS7. The default start directory is “/”, now I want change to “/home/centos/fpcyproxy” where the configuration file is in. How to change it? logging file: content of the service configuration file: OS version: Java version: Answer If you…
View CIL of C# code on Linux with mono
I want to inspect the generated CIL code of the following C# source file on Linux: When I compile and run it everything is fine: But how can I get the human readable CIL output? Answer Mono disassembler, extracts IL code from an assembly: Full reference can be found here: https://www.mono-project.com/docs/too…
Trouble writing bash sed command – regex match
I have a file full of garbage collection information that is irregular, some lines have extra information that I want to initially remove so I can then process the the file as a whole. Unfortunately the line has quite a few special characters and I am struggling with a sed command that manages to match the bi…
multi pattern in sed -n
I know there are quite a few questions asked on this topic. But I need help in a case basis.When i try to put more than 3 pattern in the option, i will get the error like that… i only want to print the words in the brackets.. here is the sed command and the output… thanks… sample output Answ…
Linux/Raspberry Pi command to help round to 2 decimal
I am running the following command to get Free Memory, and want to change it from KB to MB to the second decimal. How do I round? I have seen where it says to use scale=2, but then it just prints out scale=2, I have tried puttting it before anfer and inbetween several different ways with no luck. how can
How to link properly Dcmtk with Qt for Linux?
My goal is open Dicom files and convert thes into cv::Mat to process them with Opencv. I have compiled dcmtk 3.6.3 on ubuntu 18.4.1 and tried to link it with Qt 5.11.1 with Qt Creator 4.6.2 but failed to do so. and for the main: #include and I got this errors: Answer The error indicates that the linker could …
Upgrade openssl on Linode server but how to decide ‘ENGINESDIR’
On Linode Server, it has already installed openssl, but version is 1.1.0. But I want to try some features like TLSv1_3, so I decide to upgrade it to latest version. My old openssl version like this: Due to it is “upgrade”, so I try to retain as original as possible. Through some website I made thi…
Is setting the linux memory to unlimit will have an adverse effect?
I am running MPI job in linux server. I got error: it means that my linux server have locked memory with 65M, but my job needed more memory. I think 2G should be emough. I have found a solution about ulimiting the memory: But i am worried that i will cause system crash or some bad things happen. so can
Why does MSSQL in Docker return “The last operation was terminated because the user pressed CTRL+C” on sql queries?
I’m on Archlinux 64x (4.17.4-1-ARCH) with Docker (version 18.06.0-ce, build 0ffa8257ec). I’m using Microsoft’s MSSQL docker container CU7. Each time I’m trying to enter a query or to run a SQL file I get this warning message: Then when I check in the database with Datagrip, the query h…