Running commands on the host without ssh

No, the while loop is paused at the read step until a command is ready to run (written to the pipe).

Isn’t the “if read” check being performed as fast as possible? Constantly, until a matching command is found in the pipe?

No, “read” blocks until there is data to read.

Ah I wasn’t aware of this in bash. Do you have a link for where this blocking behaviour is documented? Thanks for clearing that up.

One line is read from the standard input…

If you need further help on this point I’d suggest experimenting with some scripting, starting with typing “read” into a terminal.

1 Like

@navels

Did you have to install crontab manually on the host?

I receive the following error after ssh’ing into the Home Assistant host:

image

I would’ve expected it to be installed by default, and can’t find anyone else on the forum encountering missing crontab command.

Did you have to install crontab manually on the host?

No but this was on Raspbian v11 Linux, not HAOS.

Ah my apologies.

I can see one of the first things you wrote in the post was “a container-based HA install”.

Makes sense now.

I can see one of the first things you wrote in the post was “a container-based HA install”.

I did write that . . . but actually I was unaware that HAOS didn’t have cron, it was more of a caveat since at that time I had never used HAOS. I’ll add a more obvious disclaimer in the OP against using HAOS.

Sorry for the wild goose chase!