/usr/bin/instant-showcache is in python-instant 2017.2.0.0-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47  | #!/usr/bin/python
#
# This script prints all modules found in the instant cache
__author__ = "Martin Alnes (martinal@simula.no)"
__date__ = "2008-09-02 -- 2008-10-16"
__copyright__ = "Copyright (C) 2008 Martin Alnes"
__license__  = "GNU GPL version 3 or any later version"
import os, sys, shutil, tempfile, glob
try:
    import instant
except:
    print("Instant not installed, exiting...")
    sys.exit(1)
files = sys.argv[1:]
if files:
    print("Showing contents of files: ", files)
modules = instant.cached_modules()
lockfiles = [m for m in modules if     m.endswith(".lock")]
modules   = [m for m in modules if not m.endswith(".lock")]
print("Found %d modules in Instant cache:" % len(modules))
for module in modules:
    print(module)
    
    if files:
        for f in files:
            filepath = os.path.join(instant.get_default_cache_dir(), module, f)
            filenames = glob.glob(filepath)
            for filename in filenames:
                print("Contents of file '%s':" % filename)
                try:
                    lines = open(filename).readlines()
                    print("".join(lines))
                except:
                    print("Failed to open.")
            print()
        print()
print("Found %d lock files in Instant cache:" % len(lockfiles))
for lockfile in lockfiles:
    print(lockfile)
 |