diff options
author | Ricky Nance <ricky.nance@weaubleau.k12.mo.us> | 2012-12-07 18:43:16 -0600 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-12-08 03:34:29 +0100 |
commit | b4ae73f58c48b3502147332ee4c72621867fffb3 (patch) | |
tree | 6947fe5db05d853ee2728bcd5e9032a48e3af0a6 /source4/scripting | |
parent | df0f59f66cca61eee967e89dc659af4ba33f0e6f (diff) | |
download | samba-b4ae73f58c48b3502147332ee4c72621867fffb3.tar.gz samba-b4ae73f58c48b3502147332ee4c72621867fffb3.tar.bz2 samba-b4ae73f58c48b3502147332ee4c72621867fffb3.zip |
samba-tool processes: Make the output a bit neater
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Dec 8 03:34:29 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/processes.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/netcmd/processes.py b/source4/scripting/python/samba/netcmd/processes.py index 751ab94c21..b25a2e453e 100644 --- a/source4/scripting/python/samba/netcmd/processes.py +++ b/source4/scripting/python/samba/netcmd/processes.py @@ -62,17 +62,17 @@ class cmd_processes(Command): if name is not None: ids = msg_ctx.irpc_servers_byname(name) for server_id in ids: - print "%d\n" % server_id.pid + self.outf.write("%d\n" % server_id.pid) elif pid is not None: names = msg_ctx.irpc_all_servers() for name in names: for server_id in name.ids: if server_id.pid == int(pid): - print "%s\n" % name.name + self.outf.write("%s\n" % name.name) else: names = msg_ctx.irpc_all_servers() + self.outf.write(" Service: PID \n") + self.outf.write("-----------------------------\n") for name in names: - print "%s: " % name.name for server_id in name.ids: - print "%d " % server_id.pid - print "\n" + self.outf.write("%-16s %6d\n" % (name.name, server_id.pid)) |