On Sun, Aug 25, 2019 at 10:02:47PM +0300, Mario Galindez wrote:
> hello,
> 
> i have set my own app as the shell of a user on a remote host.  My app
> reads from stdin, and prints output to stdout.
> 
> If I do:
> ssh u...@remotehost.com
> 
> and manually type multiple lines of text,the app works as expected (i.e. it
> processess each line, and outputs the result)
> 
> However, if I do this:
> 
> ssh -T u...@remotehost.com < file.txt
> 

Pipe works?

$ cat > foo.txt
ls /tmp
pwd
ls -l /etc/group

$ cat foo.txt | ssh -T tstuser@somehost
tmux-1000
tmux-1009
tmux-1010
tmux-1017
tmux-1018
tmux-1028
vi.recover
/home/tstuser
-rw-r--r--  1 root  wheel  1707 Jul 11 13:43 /etc/group

Tor

Reply via email to