Working with ptys is kind of tricky, you'll want a program that
specializes in that, like expect or maybe even something like tmux.

If you're working with tmux, for example, you can use tmux send-keys
to "type" things into your ssh session.
looks like it has some plausible examples of this.

I hope this helps,


On Fri, Mar 2, 2018 at 8:14 PM, Omar Passos Torres de Almeida
<> wrote:
> Hi
> How can i interact with a task like ssh using task.ijs (spawn or shell)?
> eg.
> load 'task'
> password=. 'mypassword'
> process=. shell 'ssh'
> How to send the password? and then interact with the pty?
> login@host$ ls -la
> Is there some way to do that?
> Thanks in advance,
> Omar
> ----------------------------------------------------------------------
> For information about J forums see
For information about J forums see

Reply via email to