[exec] Pseudo-terminal will not be allocated because stdin is not a terminal.

Doesn't work. Tried it to run a remote command without -t for something like
'ls' and it works fine. It seems to have a problem with '-t'
I thought exec was exactly like working on a command line.

















ruel loehr wrote:
> 
>  why can't you just do an exec with the command ssh -t .....?
> 
> -----Original Message-----
> From: mindspin311 [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 22, 2008 10:37 AM
> To: user@ant.apache.org
> Subject: sshexec (running remote commands with sudo) forced psuedo-tty
> allocation
> 
> 
> I'm trying to mimic this command in ant:
> 
> [EMAIL PROTECTED]    ssh -t [EMAIL PROTECTED] sudo
> /sbin/service httpd restart
> build has password-less ssh access to deploy's accounts. Deploy also has
> password-less sudoers access to run any root owned apps. This is the only
> way I can do this without being prompted for a password, but there is no
> way to use the -t option with sshexec. Anyone know a good fix on how to do
> this in ant using sshexec or exec?
> --
> View this message in context:
> http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18592216.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18592917.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to