[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request a PTY when running a command


On Sunday 04 August 2013 02:29:42 William Orr wrote:
> > Did you read our tutorial?
> > 
> > http://api.libssh.org/master/libssh_tutor_shell.html
> > 
> > 
> > Cheers,
> > 
> > 	-- andreas
> 
> I did read your tutorial. I'm not looking to execute a shell, I'm looking to
> execute a single command, however sudo requires a PTY.

As the name exec already states. It calls exec(v) on the server ...

> So while I do see
> that I can request a PTY when requesting a shell, I'd like to request a PTY
> while exec'ing a single command. Like I said in my original post, it's the
> same behavior as ssh -t <host> <program name>

See the tutorial I pointed you to. This is how ssh -t is implemented ...




	-- andreas

-- 
Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


References:
Re: Request a PTY when running a commandAndreas Schneider <asn@xxxxxxxxxxxxxx>
Re: Request a PTY when running a commandWilliam Orr <will@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org