blob: 6bea80b5276f5adfcd3b4972cf44092a063ee212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import commands
import logging
def system(*args):
cmd = ' '.join(args)
logging.debug('[system] %s' % cmd)
status = commands.getstatusoutput(cmd)
logging.debug('[system][out] %d: %s' % status)
return status
|