I’m trying to configure continuous deployment for my Web App in Azure so it deploys every time I push an updated container image to the Azure registry. However, when I go to “Container Settings” and set “Continuous Deployment” to true and then hit save I get the following error: …
Tag: linux
Bash script, find command, using wildcards or regex
I am writing a bash script that goes over all files in certain directory and: Picks the files with names that match a specified pattern Sorts them by data and time (date and time are part of the filename) Takes X oldest files Performs certain operations on them The pattern used to match the files is passed to…
Why does my LD_LIBRARY_PATH get an uninstalled terminal launch?
In general, what I do to get the result: I drive a team: export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib Checking: echo $LD_LIBRARY_PATH Result: /u01/app/oracle/product/11.2.0/xe/lib When I restart or open the new terminal my LD_LIBRARY_PATH is disabled. How to fix it? Answer Environment variable…
POSIX threads vs parallelism
Do POSIX threads (managing by pthread library) works parallelly? My lecturer has told us that this library creates only user threads, that are not managed by Linux kernel. I wrote some code that fill large matrix and compared times of execution for threads and whole program and it seems to works parallelly. C…
How to extract taskid(tid) of a pthread from the parent thread?
I’m using std::thread to launch threads. Also, I need stats for the worker thread available at /proc/[pid]/tasks/[tid]. I need tid to be able to monitor thread stats. I was wondering if there was a way to extract tid from the parent thread. I know that syscall gettid() from the worker returns its id, bu…
chaining multiple epoll instances
Can we add file descriptor returned by epoll_create to another epoll instance using epoll_ctl. how do we chain multiple epoll instances in the application, lets say if we have 2 epoll instances one coming from the application and the other coming from library. Please advise. Answer From man epoll Q3 Is the ep…
How do I fix “‘struct _IO_FILE’ has no member named ‘_file'”?
I have a version of a program that used to compile to a *.o file, but now it does not, and gives a compiler error. I have tried to compile my code with gcc compiler on Linux, and the compile fails. I expect the command gcc -c isatty.c to yield isatty.o but it does not. Instead, I get this message:
Many-to-one two-way communication of separate programs
I’m trying to make two-way many-to-one communication between programs in Linux. My plan is the following: One program called “driver” that talks with the hardware needs to communicate with an unknown number of applications in Linux. I read that one of the most common ways for inter process c…
how do I get bash globbing to work in script
I am trying to convert some of my ksh93 scripts to bash in cygwin. I have found 2 things right now that give me trouble. The first is a function I put in .bashrc was not recognized in the script. I put the function in the script to get around that. The second is that it won’t glob like it
I ran a npm run build, placed it on nodejs express.static, pm2 start app but Cannot GET ‘/’
I wanted to host 2 node app on one Linux box from AWS EC2. Where I can run a dev environment and staging environment. I noticed that I will have to use different ports on both of the apps but this is not the problem that I am facing. Using the staging side which has always worked on the previous