GRAYBYTE WORDPRESS FILE MANAGER2141

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/python2.7/Demo/scripts/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/python2.7/Demo/scripts//pp.py
#! /usr/bin/python2.7

# Emulate some Perl command line options.
# Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ...
# Where the options mean the following:
#   -a            : together with -n or -p, splits each line into list F
#   -c            : check syntax only, do not execute any code
#   -d            : run the script under the debugger, pdb
#   -e scriptline : gives one line of the Python script; may be repeated
#   -F fieldsep   : sets the field separator for the -a option [not in Perl]
#   -n            : runs the script for each line of input
#   -p            : prints the line after the script has run
# When no script lines have been passed, the first file argument
# contains the script.  With -n or -p, the remaining arguments are
# read as input to the script, line by line.  If a file is '-'
# or missing, standard input is read.

# XXX To do:
# - add -i extension option (change files in place)
# - make a single loop over the files and lines (changes effect of 'break')?
# - add an option to specify the record separator
# - except for -n/-p, run directly from the file if at all possible

import sys
import getopt

FS = ''
SCRIPT = []
AFLAG = 0
CFLAG = 0
DFLAG = 0
NFLAG = 0
PFLAG = 0

try:
    optlist, ARGS = getopt.getopt(sys.argv[1:], 'acde:F:np')
except getopt.error, msg:
    sys.stderr.write('%s: %s\n' % (sys.argv[0], msg))
    sys.exit(2)

for option, optarg in optlist:
    if option == '-a':
        AFLAG = 1
    elif option == '-c':
        CFLAG = 1
    elif option == '-d':
        DFLAG = 1
    elif option == '-e':
        for line in optarg.split('\n'):
            SCRIPT.append(line)
    elif option == '-F':
        FS = optarg
    elif option == '-n':
        NFLAG = 1
        PFLAG = 0
    elif option == '-p':
        NFLAG = 1
        PFLAG = 1
    else:
        print option, 'not recognized???'

if not ARGS: ARGS.append('-')

if not SCRIPT:
    if ARGS[0] == '-':
        fp = sys.stdin
    else:
        fp = open(ARGS[0], 'r')
    while 1:
        line = fp.readline()
        if not line: break
        SCRIPT.append(line[:-1])
    del fp
    del ARGS[0]
    if not ARGS: ARGS.append('-')

if CFLAG:
    prologue = ['if 0:']
    epilogue = []
elif NFLAG:
    # Note that it is on purpose that AFLAG and PFLAG are
    # tested dynamically each time through the loop
    prologue = [
            'LINECOUNT = 0',
            'for FILE in ARGS:',
            '   \tif FILE == \'-\':',
            '   \t   \tFP = sys.stdin',
            '   \telse:',
            '   \t   \tFP = open(FILE, \'r\')',
            '   \tLINENO = 0',
            '   \twhile 1:',
            '   \t   \tLINE = FP.readline()',
            '   \t   \tif not LINE: break',
            '   \t   \tLINENO = LINENO + 1',
            '   \t   \tLINECOUNT = LINECOUNT + 1',
            '   \t   \tL = LINE[:-1]',
            '   \t   \taflag = AFLAG',
            '   \t   \tif aflag:',
            '   \t   \t   \tif FS: F = L.split(FS)',
            '   \t   \t   \telse: F = L.split()'
            ]
    epilogue = [
            '   \t   \tif not PFLAG: continue',
            '   \t   \tif aflag:',
            '   \t   \t   \tif FS: print FS.join(F)',
            '   \t   \t   \telse: print \' \'.join(F)',
            '   \t   \telse: print L',
            ]
else:
    prologue = ['if 1:']
    epilogue = []

# Note that we indent using tabs only, so that any indentation style
# used in 'command' will come out right after re-indentation.

program = '\n'.join(prologue) + '\n'
for line in SCRIPT:
    program += '   \t   \t' + line + '\n'
program += '\n'.join(epilogue) + '\n'

import tempfile
fp = tempfile.NamedTemporaryFile()
fp.write(program)
fp.flush()
if DFLAG:
    import pdb
    pdb.run('execfile(%r)' % (fp.name,))
else:
    execfile(fp.name)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 08:34:37
root / root
0755
README
0.985 KB
April 19 2020 21:13:39
root / root
0644
beer.py
0.447 KB
April 10 2024 04:57:37
root / root
0755
beer.pyc
0.687 KB
April 10 2024 04:58:46
root / root
0644
beer.pyo
0.687 KB
April 10 2024 04:58:46
root / root
0644
eqfix.py
6.162 KB
April 10 2024 04:57:37
root / root
0755
eqfix.pyc
4.525 KB
April 10 2024 04:58:46
root / root
0644
eqfix.pyo
4.525 KB
April 10 2024 04:58:46
root / root
0644
fact.py
1.105 KB
April 10 2024 04:57:37
root / root
0755
fact.pyc
1.14 KB
April 10 2024 04:58:46
root / root
0644
fact.pyo
1.14 KB
April 10 2024 04:58:46
root / root
0644
find-uname.py
1.179 KB
April 10 2024 04:57:37
root / root
0755
find-uname.pyc
1.475 KB
April 10 2024 04:58:46
root / root
0644
find-uname.pyo
1.475 KB
April 10 2024 04:58:46
root / root
0644
from.py
0.853 KB
April 10 2024 04:57:37
root / root
0755
from.pyc
0.733 KB
April 10 2024 04:58:46
root / root
0644
from.pyo
0.733 KB
April 10 2024 04:58:46
root / root
0644
lpwatch.py
2.771 KB
April 10 2024 04:57:37
root / root
0755
lpwatch.pyc
2.544 KB
April 10 2024 04:58:46
root / root
0644
lpwatch.pyo
2.544 KB
April 10 2024 04:58:46
root / root
0644
makedir.py
0.497 KB
April 10 2024 04:57:37
root / root
0755
makedir.pyc
0.715 KB
April 10 2024 04:58:46
root / root
0644
makedir.pyo
0.715 KB
April 10 2024 04:58:46
root / root
0644
markov.py
3.505 KB
April 10 2024 04:57:37
root / root
0755
markov.pyc
3.931 KB
April 10 2024 04:58:46
root / root
0644
markov.pyo
3.931 KB
April 10 2024 04:58:46
root / root
0644
mboxconvert.py
3.113 KB
April 10 2024 04:57:37
root / root
0755
mboxconvert.pyc
3.177 KB
April 10 2024 04:58:46
root / root
0644
mboxconvert.pyo
3.177 KB
April 10 2024 04:58:46
root / root
0644
morse.py
4.213 KB
April 10 2024 04:57:37
root / root
0755
morse.pyc
4.327 KB
April 10 2024 04:58:46
root / root
0644
morse.pyo
4.327 KB
April 10 2024 04:58:46
root / root
0644
pi.py
0.866 KB
April 10 2024 04:57:37
root / root
0755
pi.pyc
0.899 KB
April 10 2024 04:58:46
root / root
0644
pi.pyo
0.899 KB
April 10 2024 04:58:46
root / root
0644
pp.py
3.725 KB
April 10 2024 04:57:37
root / root
0755
pp.pyc
2.279 KB
April 10 2024 04:58:46
root / root
0644
pp.pyo
2.279 KB
April 10 2024 04:58:46
root / root
0644
primes.py
0.588 KB
April 10 2024 04:57:37
root / root
0755
primes.pyc
0.899 KB
April 10 2024 04:58:46
root / root
0644
primes.pyo
0.899 KB
April 10 2024 04:58:46
root / root
0644
queens.py
2.186 KB
April 10 2024 04:57:37
root / root
0755
queens.pyc
2.953 KB
April 10 2024 04:58:46
root / root
0644
queens.pyo
2.953 KB
April 10 2024 04:58:46
root / root
0644
script.py
0.938 KB
April 10 2024 04:57:37
root / root
0755
script.pyc
1.206 KB
April 10 2024 04:58:46
root / root
0644
script.pyo
1.206 KB
April 10 2024 04:58:46
root / root
0644
unbirthday.py
3.065 KB
April 10 2024 04:57:37
root / root
0755
unbirthday.pyc
2.932 KB
April 10 2024 04:58:46
root / root
0644
unbirthday.pyo
2.932 KB
April 10 2024 04:58:46
root / root
0644
update.py
2.685 KB
April 10 2024 04:57:37
root / root
0755
update.pyc
2.694 KB
April 10 2024 04:58:46
root / root
0644
update.pyo
2.694 KB
April 10 2024 04:58:46
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF