From: Sal Serafino (serafino@cshl.edu)
Date: Thu Feb 23 2006 - 18:10:58 EST
OK - I've beaten myself on this one to no end. I have a Korn script that uses
the 'typeset -l' command to translate a value into lower case. The script works
fine from the command line, from crontab entries, and also with at/batch
submission.
We have a system call from a compiled binary that calls this script and we get:
/usr/local/bin/cdfilesxfer2: typeset: not found
Here are the important parts of the script,which receives nine parameters:
#!/bin/ksh
# Received parameters debug
echo "PL part 3 = " $3
X2=$3
typeset -l X2
cp /$1/$2/print/$4/$5/1/$X1 /$1/$2/$X2/work/cdfiles/current/$7"."$8"."$9".wri"
I don't understand why it's not working, and I can't find anything in the ksh or
the typeset man pages about what turns it on/off. For now, I've replaced the
assignment of X2 and the typeset command with:
X2=`echo $3 | tr '[:upper:]' '[:lower:]'`
This works, but it's not what I wanted to do.
TIA,
-Sal
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:05 EDT