Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 7783 invoked from network); 31 May 2005 00:55:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2005 00:55:21 -0000 Received: (qmail 91780 invoked by uid 500); 31 May 2005 00:55:16 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 91500 invoked by uid 500); 31 May 2005 00:55:15 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 91484 invoked by uid 99); 31 May 2005 00:55:15 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=BIZ_TLD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from syd-prod-com-01.tedis.com.au (HELO syd-prod-com-01.tedis.com.au) (203.202.29.218) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 17:55:13 -0700 Received: from SHEROD ([192.168.169.22]) (authenticated bits=0) by syd-prod-com-01.tedis.com.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j4V0t5df004210 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 31 May 2005 10:55:06 +1000 From: "pam withnall" To: "'Jakarta Commons Users List'" Subject: RE: using FTPClient send Command - upper case used? Date: Tue, 31 May 2005 10:54:56 +1000 Message-ID: <00ad01c5657b$62d9f080$16a9a8c0@herbert.tedis.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal In-Reply-To: <87BDF76269BD304B93028EE0657ADD2F6EC4CB@nnorsobwex001.bigwcorp.com.au> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, I'll send you the code and the reply. I send lower case and even added toLowerCase() , 'just in case', But the server thinks its uppercase "Unknown command EDISEND" . ****************code********************* System.out.println("Current working directory " + ftp.printWorkingDirectory()); System.out.println("Doing command " + command); int result = ftp.sendCommand(command.toLowerCase()); System.out.println("result of command " + command + " is :" +result); System.out.println(new Integer(ftp.getReplyCode()).toString()); System.out.println(ftp.getReplyString()); *****output******************** Current working directory /data/tradexpress/users/onestop/tmp/edifact Doing command edisend dispatch_UBM_EB result of command edisend dispatch_UBM_EB is :500 500 500 Unknown command EDISEND *********************************** > -----Original Message----- > From: Kurniawan Kurt [mailto:kkurnia@bigw.com.au] > Sent: Tuesday, May 31, 2005 10:29 AM > To: Jakarta Commons Users List > Subject: RE: using FTPClient send Command - upper case used? > > > > Hi, > > Can you give more explanation of what do you want to do with > yours ? I use HP-UX as my server, never have this problem. > > > If the return is uppercase, you should be able to change the > String returned to uppercase easily. with toUpperCase() ? if > the command is lowercase you can change with toLowerCase() ? > > > > Kurt Kurniawan > > > -----Original Message----- > From: pam withnall [mailto:pwithnall@team.tedis.biz] > Sent: Tuesday, 31 May 2005 10:08 AM > To: commons-user@jakarta.apache.org > Subject: using FTPClient send Command - upper case used? > > > Hi, > My main objective is to run some Unix commands on a remote > server. As I am already using commons.net.FTPClient to move > some files, I saw the method sendCommand(String). I used > getReplyString to find out what was happening, and my server > couldn't find the command because it was in upper case! > > > I also tried RExecClient.rexec(login,pwd,command); > but cannot see that it is working. > Thanks. Pam. > > > > > > > > > > > > CAUTION: This email and files included in its transmission > > are solely intended for the use of the addressee(s) and may > > contain information that is confidential and privileged. > > If you receive this email in error, please advise us > > immediately and delete it without copying the contents > > contained within. Woolworths Limited (including its group > > of companies) do not accept liability for the views > > expressed within or the consequences of any computer > > viruses that may be transmitted with this email. The > > contents are also subject to copyright. No part of it > > should be reproduced, adapted or transmitted without the > > written consent of the copyright owner. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org