> From: V Sidnal, Nagraju <nagraju.sid...@siemens.com> 
> Sent: Tuesday, June 23, 2020 11:20 AM
> To: libssh@libssh.org
> Subject: [EXTERNAL] When to use Interactive (PTY) or Non-Interactive 
>
> Dear All,
>
> As LibSSH supports both, Interactive(PTY) and non-interactive approach to 
> EXECUTE command on remote server/Machine.
> I would like to know when to opt for Interactive or Non-interactive.?
> On what  basis, we need to decide which one to opt for? What are the pro and 
> cons?
>
> Regards,
> Nagraju

Nagraju,

The times that you would want interactive are when you want to parse the
output of the commands that you execute, or when you want to monitor
those commands to ensure that they are doing what you expect.

If you are just looking to launch a command without regard to what
happens next, use the non-interactive.

Andy

Reply via email to