I keep getting [Errno 98] Address already in use But the address is not in use. I tried to change the ip and port but It isn’t budging. uvicorn main:app –reload also tried uvicorn main:app –host=172.0.0.2 –port=5000 then it gives [Errno 99] error while attempting to bind on address (&#…
Run different bash scripts, started by one bash startscript, in different terminal tabs
I like to run more than one bash script, each in own terminal tab. Now what did i found: The follow run two scripts inside one terminal: start.sh task_1.sh task_2.sh The follow are able to open a new tab on terminal: Now i have found the follow solution: Thats working fine, a give a error message like, “…
Yocto bitbake build error when adding fftw package
I am using Yocto Warrior release to build linux for Dart-imx8m SOM. Documentation can be found here : https://variwiki.com/index.php?title=DART-MX8M_Yocto&release=RELEASE_WARRIOR_V1.1_DART-MX8M. I want to add fftw package whose recipe is in meta-oe layer. Whenever I add this package in my local.conf file,…
The Intellij IDEA does not launch after editing the VM options file
In Intellij IDEA 2019 I mistakenly added incorrect lines to the VM option file (Menu | Help | Edit Custom VM Options). After that, the IDEA does not launch. Reinstallation didn’t help. When I run IDEA from terminal, it gives the following error: But at the same time, these lines are not in the idea64.vm…
Windows User Impersonation in .NET Core on Linux?
I’m writing a .NET Core application in C# that will run on a Linux server, but I need to impersonate a Windows user in order to access some remote resources on a Windows Server. I have credentials to authenticate there, but all the implementations I see rely on the “Advanced Windows 32 Base API…
Bash – How can i send notification once if a service is not running?
I am running the following script to check if my docker services are running. If a service isn’t running, the script sent a message to my rocketchat app via webhook like this: It works, but if a docker service is not running, i receive the message every minute again, because the script is running every …
docker run failed at “python3: can’t open file”
My code is in directory /test-scripts, details structure is as follows. Run the following command in directory /test-scripts. /test-scripts(master)> And my Dockerfile content is as follows. Use $user, $pwd above to replace the real value in this question. In my opinion, the file IssueAnalyzer.py will be co…
How to replac rows of one csv file from another csv file based on a condition in linux(using awk or any other)?
first.csv second.csv required output.csv How to achieve above scenario like replace or adding rows from one CSV to another CSV file based on a condition in linux. Thanks in advance . I tried below command but its not working . Replacing same record for all rows which satisfies the condition. Answer Another aw…
I am trying to use awk to extract a portion of each line in my file
I have a large file of user agent strings, and I want to extract one particular section of each request. For input: I am trying to get output: from after /product/ in the sample above. I’m trying to use Awk, but I can’t figure out how to get the regex expression that’s required for this. I&#…
Renaming sub-directories recursively to a new pattern in bash
I want to rename sub-directories to my new pattern but some results may be dangerous in my own script: For example if I use /tmp/etc as input argument I would have the nasty results in the first iteration: So in next iteration there will not be /tmp/etc to work at. The second problem in my script is when I us…