[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Request a PTY when running a command
[Thread Prev] | [Thread Next]
- Subject: Re: Request a PTY when running a command
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 04 Aug 2013 12:30:57 +0200
- To: libssh@xxxxxxxxxx
- Cc: William Orr <will@xxxxxxxxxxxx>
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
Re: Request a PTY when running a command | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Re: Request a PTY when running a command | William Orr <will@xxxxxxxxxxxx> |