✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server303.web-hosting.com ​🇻​♯➤ 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 199.188.205.31 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.42
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /lib64/python2.7/Demo/curses//repeat.py
#! /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()


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
15 Jun 2024 8.33 AM
root / root
0755
README
0.832 KB
19 Apr 2020 9.13 PM
root / root
0644
life.py
7.177 KB
10 Apr 2024 4.57 AM
root / root
0755
life.pyc
6.628 KB
10 Apr 2024 4.58 AM
root / root
0644
life.pyo
6.628 KB
10 Apr 2024 4.58 AM
root / root
0644
ncurses.py
6.492 KB
10 Apr 2024 4.57 AM
root / root
0755
ncurses.pyc
5.708 KB
10 Apr 2024 4.58 AM
root / root
0644
ncurses.pyo
5.708 KB
10 Apr 2024 4.58 AM
root / root
0644
rain.py
2.347 KB
10 Apr 2024 4.57 AM
root / root
0755
rain.pyc
2.241 KB
10 Apr 2024 4.58 AM
root / root
0644
rain.pyo
2.241 KB
10 Apr 2024 4.58 AM
root / root
0644
repeat.py
1.479 KB
10 Apr 2024 4.57 AM
root / root
0755
repeat.pyc
1.419 KB
10 Apr 2024 4.58 AM
root / root
0644
repeat.pyo
1.419 KB
10 Apr 2024 4.58 AM
root / root
0644
tclock.py
3.253 KB
10 Apr 2024 4.57 AM
root / root
0755
tclock.pyc
3.563 KB
10 Apr 2024 4.58 AM
root / root
0644
tclock.pyo
3.563 KB
10 Apr 2024 4.58 AM
root / root
0644
xmas.py
24.85 KB
19 Apr 2020 9.13 PM
root / root
0644
xmas.pyc
19.398 KB
10 Apr 2024 4.58 AM
root / root
0644
xmas.pyo
19.398 KB
10 Apr 2024 4.58 AM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF