예제 #1
0
파일: cmd.py 프로젝트: mak1e/Tasks
def run(commands):
	processes = []
	for command in commands:
		if isinstance(command, basestring):
			os.chdir(command)
		else:
			print "Executing: " + ' '.join(command)
			multiserve.run((command,))
예제 #2
0
파일: cmd.py 프로젝트: Lovestruck/Contacts
def run(commands):
	processes = []
	for command in commands:
		if isinstance(command, basestring):
			os.chdir(command)
		else:
			print command
			multiserve.run((command,))
#			process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
#			print process.communicate()[0]