delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/31/06:02:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: ronald DOT van DOT gogh AT philips DOT com
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: tr
Message-ID: <0056890020378366000002L962*@MHS>
Date: Wed, 31 Jan 2001 12:02:00 +0100
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id GAA30674

Gentlemen,

we're trying to run a script with Tivoli on several NT servers.
In this script we use at several positions the tr.exe to translate mixedcase strings to lowercase. 
We use it in several syntaxes: param=`echo $parameter | tr 'A-Z' 'a-z` and echo $parameter | tr 'A-Z' 'a-z'.
We noticed that on a regular basis tr and sh processes got stuck and do no complete. Looking at a trace,
generated with the set -vx command, shows several errors, like the ones stpecified below.

How are they caused and how can we avoid this ?

Kind regards,  Ronald van Gogh

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo $parameter | tr 'A-Z' 'a-z'
+++ echo Replica.Docs.Added
+++ tr A-Z a-z
tr: write error: Bad file number

0 [main] sh 644 sig_send: wait for sig_complete event failed, sig -2, rc -1, Win32 error 6
+++var=replica.docs.added

0 [sig] sh 631 wait_sig: WFMO failed, Win32 error 6
+++ tr A-Z a-z

0       [main] sh 675! spawn_guts: wait failed: nwait 3, pid 675, Win32 error 6
29213   [main] sh 675! spawn_guts: waitbuf[0] 0x14C 0
1121888 [main] sh 675! spawn_guts: waitbuf[1] 0x44 = -1
40239   [main] sh 675! spawn_guts: waitbuf[w] 0x124 = 0
C:\Tivoli\lcf\dat\1\Tiv297.SH: /Tivoli/lcf/bin/w32-ix86/tools/tr: No children
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019