- Timestamp:
- Jul 24, 2008, 9:42:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-control
r625 r721 24 24 if machine_name not in vms: 25 25 print >>sys.stderr, "machine '%s' is not on" % machine_name 26 return 226 return 1 27 27 host = vms[machine_name]['host'] 28 28 29 return call(['remctl', host, 'remote', 'control'] + argv[1:]) 29 p = Popen(['remctl', host, 'remote', 'control'] + argv[1:], 30 stdout=PIPE, stderr=PIPE) 31 (out, err) = p.communicate() 32 if p.returncode == 1: 33 print >>sys.stderr, "machine '%s' is not on" % machine_name 34 return 1 35 sys.stderr.write(err) 36 sys.stdout.write(out) 37 return p.returncode 30 38 31 39 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.