upa / deadman Goto Github PK
View Code? Open in Web Editor NEWdeadman is a curses-based host status checking application using ping
License: MIT License
deadman is a curses-based host status checking application using ping
License: MIT License
Move to python3.
I tried it during Interop Tokyo ShowNet 2018 on the python3-tmp branch, but it was not a suitable way. It may need cleanup and refactoring.
when macOS adopts python3, I will start refactor.
The current implementation uses ping
commands on OSes. However, their options are different and sometimes changed (e.g., on ubuntu 18.04). So, we need to use OS-independent ping.
Which is a better way for achieving it?
When used keyboard interruption with Ctrl-c, called traceback by python like following error.
I think daedoman needs exception handler.
upa-san
how do you think about this?
Is there some suggestion?
~/C/deadman ❯❯❯ ./deadman deadman.conf
Traceback (most recent call last):
File "./deadman", line 593, in
curses.wrapper (main)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, _args, *_kwds)
File "./deadman", line 558, in main
deadman.main ()
File "./deadman", line 478, in main
time.sleep (PING_ALLTARGET_INTERVAL)
KeyboardInterrupt
~/C/deadman ❯❯❯ ./deadman deadman.conf
Traceback (most recent call last):
File "./deadman", line 593, in
curses.wrapper (main)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, _args, *_kwds)
File "./deadman", line 558, in main
deadman.main ()
File "./deadman", line 471, in main
target.send ()
File "./deadman", line 85, in send
res = self.ping.send ()
File "./deadman", line 186, in send
result = commands.getoutput (pingcmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/commands.py", line 50, in getoutput
return getstatusoutput(cmd)[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/commands.py", line 60, in getstatusoutput
text = pipe.read()
KeyboardInterrupt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.