Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/expect
cd /home/huanghao/Documents/vpn/
spawn sudo openvpn client.conf
expect "Enter Private Key Password:"
send "7s7t2y2v\r"
expect eof
@huanghao
huanghao / pymodot.py
Created April 26, 2011 07:50
Display import-relationship of modules in a package in dot format
#coding: utf8
import compiler, sys, os, getopt, re
def usage():
print '''usage: %s [options] <package_dir ...>
display import-relationship of modules in a package in dot format
-v REGEX excluding module in regex, just like grep -v
''' % sys.argv[0]