Discussion:
[Fab-user] Different results between fabric run and direct run
Iman Gowhari
2013-10-17 10:19:53 UTC
Permalink
Good morning
Can anyone help me on this one:
http://stackoverflow.com/questions/19416183/different-results-between-fabric-run-and-direct-run
Jeff Forcier
2013-10-17 16:12:58 UTC
Permalink
Try twiddling the 'pty' argument to run()/sudo() (should also be a CLI
flag controlling the same thing globally) - I suspect some of the apps
you're running in that script are sensitive to a controlling pty or
lack thereof. That's frequently the cause of this sort of behavioral
difference.
Post by Iman Gowhari
Good morning
http://stackoverflow.com/questions/19416183/different-results-between-fabric-run-and-direct-run
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org
Iman Gowhari
2013-10-17 16:43:30 UTC
Permalink
Yes, that's it!
I found it 2 hours ago and I left my desk after 24 hours :)
It should be pty=False
Initially I can not understand why pty has such an effect.
But with your explanation I realized.
I will add your answer to the stackoverflow.
Thank you very much
Post by Jeff Forcier
Try twiddling the 'pty' argument to run()/sudo() (should also be a CLI
flag controlling the same thing globally) - I suspect some of the apps
you're running in that script are sensitive to a controlling pty or
lack thereof. That's frequently the cause of this sort of behavioral
difference.
Post by Iman Gowhari
Good morning
http://stackoverflow.com/questions/19416183/different-results-between-fabric-run-and-direct-run
Post by Iman Gowhari
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org
Loading...