I have apache server which is failing several times but it is Ok. It can go to the next step. Can someone help me on how to write a shell script to catch the error, ignore it and move on to the next step.
            Asked
            
        
        
            Active
            
        
            Viewed 56 times
        
    0
            
            
        - 
                    Ignoring a failing command and continuing with the next is bash's default behavior. – that other guy Aug 17 '18 at 18:42
- 
                    Right. Unless you have `set -e` in the script, it doesn't stop when a command fails. – Barmar Aug 17 '18 at 19:00
- 
                    Take a look at this post [Raise error in a Bash script](https://stackoverflow.com/q/30078281/6862601) that talks about error handling in detail. – codeforester Aug 17 '18 at 19:31
- 
                    What do you mean by "is failing"? Please [edit] your question and explain what is happening and what you expected to happen instead. – Robert Aug 17 '18 at 20:10
