search for: telnetlib

Displaying 3 results from an estimated 3 matches for "telnetlib".

Did you mean: telnetdir
2020 Nov 07
1
upsd "events"
...TT. > > The key to on-battery/online is the NOTIFYTYPE environment variable: > https://networkupstools.org/docs/man/upsmon.conf.html > Ok, thanks so much, Charles! I found the "nut2" Python package (https://github.com/rshipp/python-nut2) which is built on top of python's telnetlib. That should make most of the logic rather simple, certainly as compared to the C implementation. It shouldn't be too difficult to handle that reliably. > > Thanks so much, > Jason Antman > > PS - Since someone may ask about it, given my introduction, here's the > setup...
2004 Aug 06
0
Python script to automate icecast
...ecast/bin/icecon.py StopDump Morning_Magazine' (I fudge it by 2 minutes on either side, then go back in later and edit the foo_raw.mp3 file to start and end at more exact times.) Again, I hope this is useful to someone and I welcome any suggestions. Here it is: #!/usr/bin/env python from telnetlib import Telnet from time import strftime class icecon: def __init__(self, admin_password, oper_password, host='127.0.0.1', port=8000): self.admin_password = admin_password self.oper_password = oper_password self.host = host self.port = port self...
2020 Nov 07
3
upsd "events"
Hello, I'm quite new to NUT, currently setting it up on a few machines in my home lab because I switched from an APC UPS to a CyberPower unit. This is running in a home lab, and I'm trying to implement some apparently unusual logic around load-shedding. I'm strongly considering writing my own custom script to replace upsmon in order to achieve the desired result. I see a lot of