Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.143.144.95
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
Demo /
curses /
Delete
Unzip
Name
Size
Permission
Date
Action
README
852
B
-rw-r--r--
2020-04-19 21:13
life.py
7.18
KB
-rwxr-xr-x
2024-04-10 04:57
life.pyc
6.63
KB
-rw-r--r--
2024-04-10 04:58
life.pyo
6.63
KB
-rw-r--r--
2024-04-10 04:58
ncurses.py
6.49
KB
-rwxr-xr-x
2024-04-10 04:57
ncurses.pyc
5.71
KB
-rw-r--r--
2024-04-10 04:58
ncurses.pyo
5.71
KB
-rw-r--r--
2024-04-10 04:58
rain.py
2.35
KB
-rwxr-xr-x
2024-04-10 04:57
rain.pyc
2.24
KB
-rw-r--r--
2024-04-10 04:58
rain.pyo
2.24
KB
-rw-r--r--
2024-04-10 04:58
repeat.py
1.48
KB
-rwxr-xr-x
2024-04-10 04:57
repeat.pyc
1.42
KB
-rw-r--r--
2024-04-10 04:58
repeat.pyo
1.42
KB
-rw-r--r--
2024-04-10 04:58
tclock.py
3.25
KB
-rwxr-xr-x
2024-04-10 04:57
tclock.pyc
3.56
KB
-rw-r--r--
2024-04-10 04:58
tclock.pyo
3.56
KB
-rw-r--r--
2024-04-10 04:58
xmas.py
24.85
KB
-rw-r--r--
2020-04-19 21:13
xmas.pyc
19.4
KB
-rw-r--r--
2024-04-10 04:58
xmas.pyo
19.4
KB
-rw-r--r--
2024-04-10 04:58
Save
Rename
#! /usr/bin/python2.7 """repeat <shell-command> This simple program repeatedly (at 1-second intervals) executes the shell command given on the command line and displays the output (or as much of it as fits on the screen). It uses curses to paint each new output on top of the old output, so that if nothing changes, the screen doesn't change. This is handy to watch for changes in e.g. a directory or process listing. To end, hit Control-C. """ # Author: Guido van Rossum # Disclaimer: there's a Linux program named 'watch' that does the same # thing. Honestly, I didn't know of its existence when I wrote this! # To do: add features until it has the same functionality as watch(1); # then compare code size and development time. import os import sys import time import curses def main(): if not sys.argv[1:]: print __doc__ sys.exit(0) cmd = " ".join(sys.argv[1:]) p = os.popen(cmd, "r") text = p.read() sts = p.close() if sts: print >>sys.stderr, "Exit code:", sts sys.exit(sts) w = curses.initscr() try: while True: w.erase() try: w.addstr(text) except curses.error: pass w.refresh() time.sleep(1) p = os.popen(cmd, "r") text = p.read() sts = p.close() if sts: print >>sys.stderr, "Exit code:", sts sys.exit(sts) finally: curses.endwin() main()