Python Fabric: executing interactive program such as less on remote? -
when execute like: run('less <somefile>') within fabric, prepends lines out: , interacting doesn't work expected. if run with: run('cat <something>', pty=false) the output isn't prepended , can pipe less locally, like: fab less | less however i'm not sure if that's recommended since feel may taxing on remote resource since cat continually piping through ssh. when quick less before whole file cat'd (it on 1gb), broker pipe error. what recommended way facilitate this? should use ssh directly like: ssh <remote host> less <something> if you're doing interactive work on remote host, maybe using ssh fine. think fabric useful when automating actions.