Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 81456 invoked from network); 6 May 2002 18:35:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 May 2002 18:35:26 -0000 Received: (qmail 23589 invoked by uid 97); 6 May 2002 18:35:21 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 23573 invoked by uid 97); 6 May 2002 18:35:21 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 23561 invoked by uid 98); 6 May 2002 18:35:20 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <7F1BE270B8EDD411A3A000508BAC87FF0504A426@cormails10.jdedwards.com> From: "Brown, Michael" To: ant-user@jakarta.apache.org Subject: New user trying to use the exec task running a qsh with a script file.... Date: Mon, 6 May 2002 12:27:19 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hoping for any help with a exec task issue: We're having a problem executing a script using ANT from the iSeries QSH. When we try to have ANT invoke an 'exec' call to run a 'qsh' command (used to start a script that runs iSeries system commands) the system command within the script fails. This is the call from xml doc we have ANT operating on: When we redirect the output to a log file we can see the HEX for the 'exec' statement. We map the output characters to EBCDIC (for iSeries) and get the string: [exec] Command is > CPYFRMSTRF FROMSTMF('.trich.spf.pdfsrvpgm savf') TOMBR('.qsys lib.soltemp lib.pdfsrvpgm file') MBROPT(*REPLACE) < The problem here is the string should have slashes where the periods are... and forward slashes for all the spaces in the single quoted text above. When we invoke the script directly from the iSeries QSH then things work fine. Any advise would be greatly appriciated.... Michael Brown Windows Platform Technologies Bldg. 3 - 5th floor Ext. #46190 -- To unsubscribe, e-mail: For additional commands, e-mail: