koldfront

Re: Turning the printer on and off automatically

๐Ÿ•™๏ธŽ - 2021-10-20

Rainer Dorsch writes:

I am wondering though if your solution has a race condition:

You're absolutely right, it does.

In this case I prefer to skip the complexity associated with trying to mitigate the tiny race condition.

Some other computer could also try to use the printer, which wouldn't even make the printer turn on - so this solution isn't comprehensive, but for my use it is sufficient.

Thanks for your comment, I'm happy my post was useful!

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

ยน Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=