Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Thanks Rahul, But if I am using set -o in my shell script. And if it tries to copy the file from machineB and if the files is not there in machineB so it throws an exception but that file will be there in machineC so it will copy the files from machineC. But if I am using set -o then it will stop the shell script as soon as it tries to copy the file from machineB which is also not what I want? Commented Jan 1, 2014 at 6:56
  • @TechGeeky yes... I miss that point.. sorry I read slowly ... give me some time.. Commented Jan 1, 2014 at 6:57
  • @TechGeeky Why you not do all things in python ? Commented Jan 1, 2014 at 6:58
  • That's fine.. I cannot do all these things in Python. This is the requirement that has been setup so need to follow that.. Commented Jan 1, 2014 at 7:00
  • Also, I updated my question with another simple shell script. What will happen in that scenario? I will see status code not equal to zero if any of the command in my shell script failed or only the last command? Commented Jan 1, 2014 at 7:02