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" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: "Ant Users List" <user@ant.apache.org>
Subject: Sudo
Date: Wed, 24 May 2006 08:50:03 +0530
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc6-f17.bay0.hotmail.com 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 asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 20:22:47 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [61.95.162.76] (HELO Kecgate02.infosys.com) (61.95.162.76)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2006 20:22:47 -0700
Received: from INDHUBBHS02.ad.infosys.com ([192.168.200.82]) by
Kecgate02.infosys.com with InterScan Messaging Security Suite; Wed, 24 May
2006 08:50:42 +0530
Received: from CHNSHLMSG02.ad.infosys.com ([172.21.73.102]) by
INDHUBBHS02.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 24
May 2006 08:50:07 +0530
X-Message-Info: LsUYwwHHNt3ZPu9VBM19PmEPoSwUslC/B5iJAcMFDbI=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.7
required=10.0tests=DNS_FROM_RFC_ABUSE,FROM_HAS_ULINE_NUMS,HTML_MESSAGE
X-Spam-Check-By: apache.org
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Sudo
Thread-Index: AcZ+4PLb5hvR9V9VQDi2U5EWRYdZVg==
X-OriginalArrivalTime: 24 May 2006 03:20:07.0794 (UTC)
FILETIME=[F52F7520:01C67EE0]
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
Hi all
How to pass sudo command with password in sshexec.
<sshexec host="${IP.7081}"
username="${IP.USER}"
password="${IP.PASSWORD}"
trust="true"
command="sudo su;su wlsadmin"/>
after executing the above command
sudo su...........it will be prompted for password.
I have to give password after this how do I give?
How do sshexec command attribute accept password like
this...............
Thanks in advance
Venkatesh.V
**************** 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®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]