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.

1
  • Thanks for the response..X and Y are the variables that i'm passing to the script: test.sh, so basically, the command to be run from the command prompt looks like: X=$var Y=$(date) ./test.sh. I'm not sure if in the loop, it'll check the successful completion of it's previous run. Commented Sep 2, 2018 at 9:43