Discussion:
[Fab-user] Redirecting fab output truncates lines
Geir Engebakken
2015-09-11 10:38:47 UTC
Permalink
I am trying to get a listing of the output from fab -list into a file, but it seems to truncate the line length to 80 characters, so the captured output looks like this :

econfluence.create_new_confluence_user Create a new confluence user in ...
econfluence.delete_confluence_user Delete a confluence user in crow...

As I would like to get the docstring text also this is annoying. I have tried setting COLUMNS env variable, but that doesn't work. Any idea whats happening, and how to get full lines to the file?


Geir
Geir Engebakken
2015-09-11 10:59:12 UTC
Permalink
Forgot to mention that this is fabric 1.6.2, and we should probably upgrade :)

As a hack, I found out that fabric.utils has a _pty_size which defaults to 80 for column width, I changed that to 200 and now I get the full listing, but I don't know if this could cause other problems ....


Geir

From: fab-user-bounces+geir.engebakken=***@nongnu.org [mailto:fab-user-bounces+geir.engebakken=***@nongnu.org] On Behalf Of Geir Engebakken
Sent: 11. september 2015 12:39
To: fab-***@nongnu.org
Subject: [Fab-user] Redirecting fab output truncates lines

I am trying to get a listing of the output from fab -list into a file, but it seems to truncate the line length to 80 characters, so the captured output looks like this :

econfluence.create_new_confluence_user Create a new confluence user in ...
econfluence.delete_confluence_user Delete a confluence user in crow...

As I would like to get the docstring text also this is annoying. I have tried setting COLUMNS env variable, but that doesn't work. Any idea whats happening, and how to get full lines to the file?


Geir

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2015.0.6086 / Virus Database: 4409/10618 - Release Date: 09/11/15
Christopher Dobbs
2015-09-11 11:00:07 UTC
Permalink
Aha...yes i agree

From: Geir Engebakken
Sent: 11. september 2015 12:59
To: fab-***@nongnu.org
Cc: Christopher Dobbs
Subject: RE: Redirecting fab output truncates lines

Forgot to mention that this is fabric 1.6.2, and we should probably upgrade :)

As a hack, I found out that fabric.utils has a _pty_size which defaults to 80 for column width, I changed that to 200 and now I get the full listing, but I don't know if this could cause other problems ....


Geir

From: fab-user-bounces+geir.engebakken=***@nongnu.org<mailto:fab-user-bounces+geir.engebakken=***@nongnu.org> [mailto:fab-user-bounces+geir.engebakken=***@nongnu.org] On Behalf Of Geir Engebakken
Sent: 11. september 2015 12:39
To: fab-***@nongnu.org<mailto:fab-***@nongnu.org>
Subject: [Fab-user] Redirecting fab output truncates lines

I am trying to get a listing of the output from fab -list into a file, but it seems to truncate the line length to 80 characters, so the captured output looks like this :

econfluence.create_new_confluence_user Create a new confluence user in ...
econfluence.delete_confluence_user Delete a confluence user in crow...

As I would like to get the docstring text also this is annoying. I have tried setting COLUMNS env variable, but that doesn't work. Any idea whats happening, and how to get full lines to the file?


Geir

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2015.0.6086 / Virus Database: 4409/10618 - Release Date: 09/11/15
Loading...