#!/usr/bin/env python

""" Usage: cdrecord-pkm <isoFileName>

	Burn an iso file to a cdr. 
	
	Requires that the user is a member of 
	sudoer's. Do a 'man sudo' for information on setting that up.
	
	Requires the cdrecord utility, which likely exists on your Linux system
	already.
	
	Enjoy!   --Paul McNett (p@ulmcnett.com)
"""
import sys, os

def main():
	try:
		isoFile = sys.argv[1]
	except IndexError:
		sys.stderr.write(__doc__)
		sys.exit()

	os.system("sudo cdrecord -v speed=4 dev=0,0,0 %s" % isoFile)

if __name__ == "__main__":
	main()