I have a script with this name : Run.sh I run this script with this command : I don’t like stop this script but this script Suddenly stops and need run again. I need a script to check it , if my run.sh stopped , run it again. this is run.sh codes: And i want run this script at boot
Tag: linux
Linux – User expiration date in hours [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 …
How to write the docker script such that sudo works in Docker user? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 5 years ago. Improve this question I’ve ran an empty Docker container with Ubuntu and created a …
replace null to “”test”” in a file using unix
I have below pattern in my file at different lines I want to replaceu this to through linux i used the below commands: but failed. Answer This should do it:
Bash – How to run code whenever USB device is connected
I am writing a bash script to automatically detect when my USB keyboard is plugged into my laptop (running Ubuntu 14), so I can change the keyboard layout automatically. Here is my code so far (I got it from another post on Stack Overflow so I’m not 100% sure how it works) I have got this to run on star…
how to change unique values within a specific column in a file to another value in linux?
I have a file like this: I want in the second colum all the rows with value 1 be changed into 4. so output should be: any suggestion? Answer You can use an awk ternary operator for that, Since by default awk splits input fields by a single white-space, we can directly check $2 to contain value as 1 if
Trimming string up to certain characters in Bash
I’m trying to make a bash script that will tell me the latest stable version of the Linux kernel. The problem is that, while I can remove everything after certain characters, I don’t seem to be able to delete everything prior to certain characters. Somehow the output “ignores” the wget…
How to get number of worker, cores, ram from HDI cluster
Here is my scenario. I am creating HDI cluster and installing my custom application using ARM template. I need following values to be configured for my application using Shell script. Installing my application using CustomScript option in ARM template. Number of worker nodes Number of cores per worker node RA…
What is the best way to link two ARM template in Azure
HDI cluster on template2:- Azure VM on template1:- I am able to deploy 1 and 2 separately without any issues. Now I want to get the HDI cluster headnode IP and use in property file on Azure VM. How can I achieve 3 and deploy 1,2,3 in an order at one go? Answer According to your scenario, you could use
Startup program and libocci.so.11.1: cannot open shared object file: No such file or directory
please any one save my time .my application is written in c++ I was try to startup on boot in ubuntu linux,but when the program try to start it log error like:- error while loading shared libraries: libocci.so.11.1: cannot open shared object file: No such file or directory my program use oracle api:- my start…