While studying and learning Docker, I’ve read a lot about linux distributions and I always read positive comments in Alpine because of it being lightweight but what are the disadvantages of using lightweight? I’m guessing that because it’s lightweight, it also has a disadvantage when it come…
Script takes parameters from the previous run
I am using docker container that runs Alpine Linux.It runs some bash script async The first time it runs it seems it does nothing it should write to some database but when I run it second time It does work but it use parameters from the previous run i.e param1 and param2. Without &>/dev/null &disow…
Need to get Linux Dist name from different Dists
want to code a script that is for multiple linux distributions. Also want to add commands that check, and if not exist install some packages.. So, need a solution to ckeck Dist name (like Debian or RedHat) to execute the right command for this Dist. I have tryed “lsb_release” but is this working a…
Error ubuntu apt-get update [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 …
Forking, daemonizing and monitoring a python script
I have a python script sc.py on my debian server. I would like : To run it as a daemon and keep it running indefinitely To run it N times (as sub processes, children, forks) in // To monitor the whole processes (in order to restart any dying process) Do you know software that would enable me to do so?
Only blobs formatted as VHDs can be imported
I am following these https://learn.microsoft.com/en-us/azure/virtual-machines/linux/upload-vhd instructions to create a VM in Azure. At this stage though az disk create –resource-group myResourceGroup –name myManagedDisk –source https://mystorageaccount.blob.core.windows.net/mydisks/myDisk.…
Apache redirect any 503 error to a maintenance page
I have two vhosts in one server thats using apache – my main page is www.alleOne.com and the other is www.sch2.com. I have a custom page that if www.sch2.com or any other uri page in www.sch2.com/madeup is down a 503 error code, it should redirect to my custom page http://www.alleOne.com/corp/en/service…
Amazon CLI bash script on Ubuntu 16.04, “unexpected operator” on if statements (syntax looks correct)
I’m trying to troubleshoot issues I’m having with an Amazon CLI backup script that’s running on Ubuntu Server 16.04. When I run the script manually I see that my if statements throw errors. Per request I’ve reduced my example to be minimal and verifiable. This script was running on ano…
Ubuntu bash script grepping and cutting on first column
I am trying to implement a bash script that will take the piped input and cut the first column and return a total. The difference is that the cut is not from a file, but from the piped input. For example: Basically, in my scenario the first column will always be from the passed input. Example usuage is: data.…
Linux server C code stalls after receiving a signal
I have a problem with this simple server code, it works as expected until it receives a signal. For debug I print server and client file descriptors before calling select with the line: When running normally it keeps printing but when it receives a signal it prints this line once and then the program stalls. …