Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra '\r' in command output #5

Open
jererc opened this issue Jun 14, 2012 · 10 comments
Open

extra '\r' in command output #5

jererc opened this issue Jun 14, 2012 · 10 comments
Assignees

Comments

@jererc
Copy link

jererc commented Jun 14, 2012

Hello

is it possible to correct the output, which has extra '\r' at the end of lines than with the fabric commands ?

Jérôme

@JasperVanDenBosch
Copy link
Owner

Yes, I'll gladly look into this. Do you happen to have some example output and the corresponding script?

@jererc
Copy link
Author

jererc commented Jun 14, 2012

hey

http://pastebin.com/KCASAkHj

@JasperVanDenBosch
Copy link
Owner

Thank you! I think I can fix this tonight.

@jererc
Copy link
Author

jererc commented Jun 14, 2012

Actually, is it possible to get the same exact output than when running the command like fabric run/sudo/local methods (without the pexpect 'before' attr content and "Exiting fexpect for EOF.") and also the pexpect 'exit_status' attribute if needed ?

@JasperVanDenBosch
Copy link
Owner

Okay, I need a bit more time, perhaps tomorrow. Some of these things are pexpect internal, but we can workaround by changing the output as you did. I will create some verbosity settings and in the end it should be possible for it to create the same output as regular run/sudo/local.

@jererc
Copy link
Author

jererc commented Jun 15, 2012

Hello
I finally did my own lightweight expect using paramiko Channel, for speed purpose.
I'll check your work out.
Thanks

@jererc
Copy link
Author

jererc commented Jun 15, 2012

http://pastebin.com/WRRWf6jv

Feedbacks are welcome =)

@jererc
Copy link
Author

jererc commented Jun 15, 2012

Just created a repo there if you're interested or if you have suggestions:
https://github.com/jererc/sshex-py

Jerome

@JasperVanDenBosch
Copy link
Owner

I will definitely have a look. Which of the features you mentioned before would you still like to see in fexpect? Or will you switch to sshex-py entirely? Just so I know where to put my priorities :)

@jererc
Copy link
Author

jererc commented Jun 15, 2012

Well, i'm using my own project.
Although, i'm still interested in a fabric contrib with expect.

Thank you for the reactivity! =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants