Found a solution. Have to go into sudoers and comment 'requiretty'
Doesn't seem to be a way around this other than commenting out this line.
krzysieq wrote:
>
> Forgot to close the double quote at the end of arg line...
>
> 2008/7/25 Krzysieq <[EMAIL PROTECTED]>
>
>> Not sure, but maybe this
Forgot to close the double quote at the end of arg line...
2008/7/25 Krzysieq <[EMAIL PROTECTED]>
> Not sure, but maybe this will help You:
>
>
> http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html
>> Sent from the Ant - Use
Not sure, but maybe this will help You:
http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---
meh.. I give up.
ssh'in into root by adding build's pub key to root's authorized_keys' file.
Systems might have some problems with it, but it works for now.
--
View this message in context:
http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-t
ad is here:
>> http://marc.info/?l=ant-user&m=120128316829325&w=2
>>
>>
>> -Original Message-
>> From: mindspin311 [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 22, 2008 11:08 AM
>> To: user@ant.apache.org
>> Subject: RE: sshexec (ru
nning remote commands with sudo) forced
psuedo-tty allocation
I tried that to no avail. I got this as my build script:
antRunAsync I copied the way it was.
and TestCommand is:
#!/bin/sh
ssh -t [EMAIL PROTECTED] sudo /sbin/services httpd restart
Not sure what
/marc.info/?l=ant-user&m=120128316829325&w=2
>
>
> -Original Message-
> From: mindspin311 [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 22, 2008 11:08 AM
> To: user@ant.apache.org
> Subject: RE: sshexec (running remote commands with sudo) forced
> psuedo-t
To: user@ant.apache.org
Subject: RE: sshexec (running remote commands with sudo) forced
psuedo-tty allocation
[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
[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
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 mimi
10 matches
Mail list logo