I have some task on which i need to know the install date of WLS which is located in second row of file called envVars.properties which is located in /opt/weblogic1221/wlserver_12.2.1/installation/install/envVars.properties. I have server which has multiple versions of WL there for I use * in /opt/weblogic*/w…
Prometheus alertmanager – invalid leading UTF-8 octet
I am trying to configure the slack notification from Prometheus alertmanager with below yml. When i start my alert-manager container it keep on restarting and shows below error. alertmanager | level=error ts=2021-01-12T04:08:19.040Z caller=coordinator.go:124 component=configuration msg=”Loading configur…
I want to delete any locally installed package from my Linux machine and use directly only packages from environment
I am in Linux system and i have 3 different anaconda environments. My issue is that probably i installed some packages locally and i cannot find them. Into the environments the rest users cannot see dnspython, certifi and pymongo packages. I am the only user that can see those packages. I want to find and del…
Why this variable lies on same address
Here I have taken two local variables and printing the address of both. I am getting both addresses is same how? code is here: and the output is: here the str and arr[1] address are the same. please help me out. thank you in advance Answer In char arr[][15]={0};, the blank subscript leaves it to the compiler …
How to replace ‘>> $log_file 2>&1’ from all files
In my files commands are like : File1.sh: File2.sh File3.sh I am looking for a command to remove the line where defined variable ‘log_file’ from all the files AND remove only ‘>> $log_file 2>&1’ part from all the files Output in files: File1.sh: echo -e “n Output is …
How to change microphone sample rate to 16000 on linux?
I am currently working on a project for which I am trying to use Deepspeech on a raspberry pi while using microphone audio, but I keep getting an Invalid Sample rate error. Using pyAudio I create a stream which uses the sample rate the model wants, which is 16000, but the microphone I am using has a sample ra…
How to explicitly call the specified overload function?
Like this code, the C++ compiler will convert char* to bool and then call the first function, which is inconsistent with my original intention. Is there any way to prevent the compiler from performing type conversions that I don’t want? Like “-fno-permissive”, but unfortunately, it doesnR…
What is the command to remove files in Linux from a particular directory which are owned by a particular user?
Let’s say we have a directory path /home/username. How can we delete all the files only from this path which are owned/created by the user dev-user? When I am trying but it’s giving an error and it’s removing files from other directories as well. Answer Use the user flag to specify files own…
Docker – is it safe to switch to non-root user in ENTRYPOINT?
Is it considered a secure practice to run root privileged ENTRYPOINT [“/bin/sh”, entrypoint.sh”], that later switches to non-root user before running the application? More context: There are a number of articles (1, 2, 3) suggesting that running the container as non-root user is a best pract…
TQMLS1028A error with Open Industrial Linux ” Unable to read file fsl-ls1028a-mbls1028a.dtb “
I am trying to build the Open Industrial Linux Image and I am facing some problems when I try to run the builded image in the TQMLS1028A I try to build the image with an Linux Mint 19.3 with the kernel 5.0.21-rt16 and with an Ubuntu 16.04.7 LTS with the kernel 4.15.0-112 generic. When I make the Image with bo…