ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Res Pons" <>
Subject RE: Sudo
Date Wed, 24 May 2006 04:21:43 GMT
ssh task doesn't have such an attribute.  You either have to work with a 
combination of Ant and Expect or get your Sysadmin to grant you sudoless 
access like I did.

----Original Message Follows----
From: "Venkatesh Vijayakumar04" <>
Reply-To: "Ant Users List" <>
To: "Ant Users List" <>
Subject: Sudo
Date: Wed, 24 May 2006 08:50:03 +0530
MIME-Version: 1.0
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.1830); Tue, 23 
May 2006 20:22:49 -0700
Received: (qmail 36133 invoked by uid 500); 24 May 2006 03:22:48 -0000
Received: (qmail 36122 invoked by uid 99); 24 May 2006 03:22:47 -0000
Received: from (HELO (    by (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 20:22:47 -0700
Received: pass ( local policy)
Received: from [] (HELO (    
by (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 20:22:47 -0700
Received: from ([]) by with InterScan Messaging Security Suite; Wed, 24 May 
2006 08:50:42 +0530
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.1830); Wed, 24 
May 2006 08:50:07 +0530
X-Message-Info: LsUYwwHHNt3ZPu9VBM19PmEPoSwUslC/B5iJAcMFDbI=
Mailing-List: contact; run by ezmlm
Precedence: bulk
List-Unsubscribe: <>
List-Help: <>
List-Post: <>
List-Id: "Ant Users List" <>
Delivered-To: mailing list
X-ASF-Spam-Status: No, hits=0.7 
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
Thread-Topic: Sudo
Thread-Index: AcZ+4PLb5hvR9V9VQDi2U5EWRYdZVg==
X-OriginalArrivalTime: 24 May 2006 03:20:07.0794 (UTC) 
X-Virus-Checked: Checked by ClamAV on

Hi all

How to pass sudo command with password in sshexec.

<sshexec host="${IP.7081}"




             command="sudo su;su wlsadmin"/>

after executing the above command

sudo will be prompted for password.

I have to give password after this how do I give?

How do sshexec command attribute accept password like

Thanks in advance


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, 
please notify the sender by e-mail and delete the original message. Further, 
you are not to copy, disclose, or distribute this e-mail or its contents to 
any other person and any such actions are unlawful. This e-mail may contain 
viruses. Infosys has taken every reasonable precaution to minimize this 
risk, but is not liable for any damage you may sustain as a result of any 
virus in this e-mail. You should carry out your own virus checks before 
opening the e-mail or attachment. Infosys reserves the right to monitor and 
review the content of all messages sent to or from this e-mail address. 
Messages sent to or from this e-mail address may be stored on the Infosys 
e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message