On Monday, August 26, 2019 8:02 AM, Andreas Kusalananda Kähäri 
<andreas.kah...@abc.se> wrote:

> 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
> > my tool only processes the first line, and then quits.
> > any clues?
> > thx, - m
>
> Hi,
>
> You asked this on both unix.stackexchange.com [1] and an askubuntu.com
> [2]. Are you running OpenBSD or Ubuntu Linux?
>
> You were asked questions about your application and your setup that
> you never answered. Are you going to say more about what your
> application is doing here on this list?
>
> [1] https://unix.stackexchange.com/questions/537363
> [2] https://askubuntu.com/questions/1168456
>
> Regards,
> Kusalananda


Hey Mario,

If I'm understanding your problem, take a look at the "-n" switch in the ssh 
man pages.  I ran in to a similar issue that you're having and this solved it.

I hope this helps...James

Reply via email to