import string
from ctypes import windll

def get_drives():
    drives = []
    bitmask = windll.kernel32.GetLogicalDrives()
    for letter in string.uppercase:
        if bitmask & 1:
            drives.append(letter)
        bitmask >>= 1
    return drives

if __name__ == '__main__':
    print get_drives()     # On my PC, this prints ['A', 'C', 'D', 'F', 'H']


import os, re
re.findall(r"[A-Z]+:.*$",os.popen("mountvol /").read(),re.MULTILINE)


id oracle | sed 's/^uid=//;s/(.*$//'

#!/bin/bash


echo "SHOW SERVERS"

su - oracle -c "sqlplus '/as sysdba'" << END

set pagesize 0 feedback off ver off heading off echo off

CONN 아이디/패스워드

쿼리

exit;

END



+ Recent posts