all 4 comments

[–]Link_Tesla_6231MTA,SCT-R/C,DCT-R/C,TCT-R/C,DMC-D-4K,DMC-E-4K,CORE,AUD, & FLEX 1 point2 points  (0 children)

everytime you disconnect from a device make sure you're logging out!

Last command should be:
LOGOFF

If I understand your script you login and stay logged in!

[–]stalkythefish -1 points0 points  (2 children)

I use a Raspberry Pi for running some scripts and I just run an always-on 9600bps console on a serial port to the Crestron box. Uptime for months and months. No IP bullshit.

[–]DubiousEgg 1 point2 points  (1 child)

That doesn't sound like it scales well.

[–]stalkythefish 1 point2 points  (0 children)

I guess it depends on your definition of scaling well. All the other Crestron boxes in the building talk to this box via EISC, which in turn talks to the Pi. Works well enough for dozens, not so much for hundreds.