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*

4
  • Or use the systemd tool that's built for the job... Commented Nov 10, 2019 at 21:01
  • You are using $1 and $i in the same script. What is the $i about? Does it work (better) if you switch to using $1 consistently? Commented Nov 10, 2019 at 22:41
  • @linux-fan I believe doing that would cause an infinite loop Commented Nov 10, 2019 at 22:52
  • Thanks, I see it now :) Commented Nov 10, 2019 at 22:53