Discussion:
Suggestion about lftp: redirect output ou remote host
Leandro Santiago
2012-09-21 15:19:57 UTC
Permalink
Hi. My name's Leandro and I'm using lftp here in Brazil. Thx for this
great piece of software :-)

I'd like to be able to do somethng like:

lftp> command > out.txt

where out.txt is a text file on remote host with the output content of
the remote command "command", instead of writting on stdout/stderr Or
it could be something like.

lftp> command --output out.txt

The same to stderr: "2>" or --error-output.

The idea is being able to to

Is this feature hard to be implemented? If you gave me some tips about
where on the code I can find the "right" place to do it, I can try to
implement by myself and send you the changes I did.

Thx in advance.
--
-----
Sent from my Atari
Leandro Santiago
2012-09-21 15:41:37 UTC
Permalink
ops, I sent the e-mail before had finishedit.

The idea of this feature is being able to redirect the command outputs
on remote host (when available, as in sftp) without need to get this
output on local host and resend it to remote host.
Post by Leandro Santiago
Hi. My name's Leandro and I'm using lftp here in Brazil. Thx for this
great piece of software :-)
lftp> command > out.txt
where out.txt is a text file on remote host with the output content of
the remote command "command", instead of writting on stdout/stderr Or
it could be something like.
lftp> command --output out.txt
The same to stderr: "2>" or --error-output.
The idea is being able to to
Is this feature hard to be implemented? If you gave me some tips about
where on the code I can find the "right" place to do it, I can try to
implement by myself and send you the changes I did.
Thx in advance.
--
-----
Sent from my Atari
--
-----
Sent from my Atari
Alexander V. Lukyanov
2012-12-03 11:39:20 UTC
Permalink
Post by Leandro Santiago
The idea of this feature is being able to redirect the command outputs
on remote host (when available, as in sftp) without need to get this
output on local host and resend it to remote host.
You can do something like this with FISH protocol, using "quote" command.
--
Alexander.
Loading...