Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51257 invoked from network); 19 May 2010 11:57:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 11:57:00 -0000 Received: (qmail 87768 invoked by uid 500); 19 May 2010 11:56:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 87719 invoked by uid 500); 19 May 2010 11:56:58 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 87711 invoked by uid 99); 19 May 2010 11:56:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 11:56:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 11:56:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OEht2-0004si-D7 for user@ant.apache.org; Wed, 19 May 2010 04:56:32 -0700 Message-ID: <28607151.post@talk.nabble.com> Date: Wed, 19 May 2010 04:56:32 -0700 (PDT) From: Nabble_fan To: user@ant.apache.org Subject: Ant telnet task fails to login to a few unix boxes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: koustav.dey@bt.com I am running a simple Ant telnet code snippet to login to a unix box. y /home/${username} The above code does not work for the box with the details given below. In a unix box which displays the following messages while logging in, I am not quite sure whether this code is standard or not. Can you please suggest a code that can work for different unix boxes. British Telecommunications plc ------------------------------------------------------------------------------ - WARNING - You have accessed the hwduha04 computer system operated by BT. You are required to have a personal authorisation from the system administrator before you use this computer and are strictly limited to the use set out in that authorisation. UNAUTHORISED ACCESS TO OR USE OF THIS SYSTEM IS PROHIBITED and constitutes an offence under the Computer Misuse Act 1990. Unauthorised access to information is defined within policy A008/4.1 in ISIS Information Security, SEC/POL/A008. If you disclose customer or BT information without authority you may be sacked and prosecuted. Are you authorised to use this computer as detailed above? (Y)es/(N)o : y (c)Copyright 1983-2000 Hewlett-Packard Co., All Rights Reserved. (c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California (c)Copyright 1980, 1984, 1986 Novell, Inc. (c)Copyright 1986-1992 Sun Microsystems, Inc. (c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology (c)Copyright 1989-1993 The Open Software Foundation, Inc. (c)Copyright 1986 Digital Equipment Corp. (c)Copyright 1990 Motorola, Inc. (c)Copyright 1990, 1991, 1992 Cornell University (c)Copyright 1989-1991 The University of Maryland (c)Copyright 1988 Carnegie Mellon University (c)Copyright 1991-2000 Mentat Inc. (c)Copyright 1996 Morning Star Technologies, Inc. (c)Copyright 1996 Progressive Systems, Inc. (c)Copyright 1991-2000 Isogon Corporation, All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause in DFARS 252.227-7013. Hewlett-Packard Company 3000 Hanover Street Palo Alto, CA 94304 U.S.A. Rights for non-DOD U.S. Government Departments and Agencies are as set forth in FAR 52.227-19(c)(1,2). However, the following code works in the same box. wait authorised y /home/${username} Please suggest a standard code. -- View this message in context: http://old.nabble.com/Ant-telnet-task-fails-to-login-to-a-few-unix-boxes-tp28607151p28607151.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org