typeset in Korn Shell scripts
2007-12-25 5:52:00
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
Comments
Got something to say?
You must be logged in to post a comment.

