Re: cygwin and db2

2006-08-03 Thread prz
Just to inform others that the problem has been corrected by db2 team. export DB2CLP=**$$** corrected the problem... Best Regards, Guy Przytula -- View this message in context: http://www.nabble.com/cygwin-and-db2-tf2008740.html#a5645136 Sent from the Cygwin Users forum at Nabble.com. -- Uns

cygwin and db2

2006-07-27 Thread prz
I have different machines with cygwin and db2 installed There is 1 machine that is acting differently from the other machines, although I don't modify many setting in cygwin/windows The case is that if I connect to database : this is successfull but this connection is immediatly lost. I execute an

grep and words

2006-07-12 Thread prz
another question from newbie .. is it possible with grep to select only the rows where the second word applies, because the pattern can occur at different places like : row 1 : zzz row 2 : zzz I need only the row where word 2 = grep would also return row 2 Thanks for

variable after break

2006-07-11 Thread prz
I am using a simple program with a loop #!/cygdrive/c/Cygwin/bin/bash db2pd -d ddba -transaction | grep " $lw " | gawk '{ print $2" "$4}' | { while read TREC do set - $TREC tid=$2 aid=$1 echo "tid : $tid aid : $aid" if [[ "${tid}" -e

find missing parameter

2006-06-30 Thread prz
I have a small problem with find command whenever I specify the -exec option this error is displayed /cygdrive/c/workdir: find . -name "db*" -mtime +2 -type f -exec /bin/rm {} find: missing argument to `-exec' tried quotes - single double ... with/without path to rm or any other command (ls) re

diff

2006-06-29 Thread prz
I am trying to use diff and get the message cygintl-2.dll not found I verified packages : coreutils - fileutils-diffutils and they are all installed with setup tried re-install : same result Any idea for this dll ? (or package missing) Best Regards, Guy Przytula -- View this message in context:

Re: loop hanging

2006-06-28 Thread prz
thanks for the update changed the code (not as indicated - in that case DBREC does not get filled but .. while read DBREC done < foo.tmp using this type of coding I never get the hang.. Best Regards, Guy Przytula -- View this message in context: http://www.nabble.com/loop-hanging-tf18614

loop hanging

2006-06-28 Thread prz
I have a small program that executes a command and parses the output I can see that on many executions the program hangs. added some debug statements and could see it is at loop iteration that we hang sample code #!/cygdrive/c/Cygwin/bin/bash db2 list db directory | { while read DBREC

Re: variable

2006-06-19 Thread prz
thanks for the update a simple testcase tempdba:/cygdrive/c/workdir:echo $OBJECT tempdba:/cygdrive/c/workdir:. ./testcase -a dt print object dt tempdba:/cygdrive/c/workdir:. ./testcase -a dt print object dt tempdba:/cygdrive/c/workdir:. ./testcase -a dl print object dt tempdba:/cygdrive/c/workdir

variable

2006-06-19 Thread prz
I have cygwin running o win/xp whenever I execute a script that accepts options like : while getopts "d:a:s:u:" option; do case "$option" in d) DBNAME=$OPTARG ;; a) OBJECT=$OPTARG ;; s) CREATOR=$OPTARG ;; u) USER=$OPTARG ;; *) usage esac d