コード例 #1
0
	def __init__(self, path):
		assert path is not None
		self.path = path

		cmdText = "mkdir -p '{0}'".format(self.path)
		ShTextCommand.__init__(self, cmdText)
コード例 #2
0
from commands.ShTextCommand import ShTextCommand

calendarCommand = ShTextCommand("cal 12 2013")
calendarCommand.execute()

touchCommand = ShTextCommand("touch ../tmp.txt")
touchCommand.execute()