Direktori : /proc/self/root/proc/thread-self/root/opt/imh-python/bin/ |
Current File : //proc/self/root/proc/thread-self/root/opt/imh-python/bin/mdjson |
#!/opt/imh-python/bin/python3.9 import argparse import json import sys import mdstat if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("path", nargs="?", default="/proc/mdstat") args = parser.parse_args() json.dump(mdstat.parse(args.path), sys.stdout, indent=4)