typeset in Korn Shell scripts
- From: Sal Serafino <serafino@xxxxxxxx>
- Date: Thu, 23 Feb 2006 18:10:58 -0500 (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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: pcisch: PCI iommu errors
- Next by Date: SUMMARY: SMPatch
- Previous by thread: pcisch: PCI iommu errors
- Next by thread: typeset in Korn Shell scripts
- Index(es):
Relevant Pages
|
|