unix1986 / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

Enhancement: Task status report does not include username #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As of version 2.1.1 task status report contains only hostname and port:

[1] 09:04:01 [FAILURE] host1.example.com Exited with error code XXX
[2] 09:04:01 [SUCCESS] host1.example.com 
[3] 09:04:01 [SUCCESS] host2.example.com

It makes hard to distinguish commands started on the same host, but from 
different users. I propose to add username to task status report like follows:

[1] 09:04:01 [FAILURE] user1@host1.example.com Exited with error code XXX
[2] 09:04:01 [SUCCESS] user2@host1.example.com 
[3] 09:04:01 [SUCCESS] user3@host2.example.com

The change looks trivial. Patch attached.

Original issue reported on code.google.com by abon...@gmail.com on 30 Dec 2010 at 4:48

Attachments:

GoogleCodeExporter commented 8 years ago
That looks really simple.  I like patches that remove more code than they add. 
:)  I'll need to test this out a bit before I apply it, but I should be able to 
apply it this week.  Thanks for your contribution.

Original comment by amcna...@gmail.com on 9 Jan 2011 at 6:54

GoogleCodeExporter commented 8 years ago
I tested this a bit, and it looks great.  This is applied as commit 0d6bfb.  
Thanks for the patch.  Let me know if you see any other problems.

Original comment by amcna...@gmail.com on 10 Jan 2011 at 2:21