Results 1 to 3 of 3
Hi
I'm getting a "ksh: SCRIPT: is read only" error whenever I run the following ksh script:
Code:
#!/bin/ksh
set -o xtrace
SCRIPT=`basename ${0}`
BASENAME=`basename ${SCRIPT}`
echo $BASENAME
if [[ ...
- 01-05-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 6
[SOLVED] read only variable?
Hi
I'm getting a "ksh: SCRIPT: is read only" error whenever I run the following ksh script:
Could anyone advise as to why?Code:#!/bin/ksh set -o xtrace SCRIPT=`basename ${0}` BASENAME=`basename ${SCRIPT}` echo $BASENAME if [[ -z ${SCRIPTS} ]]; then print "${SCRIPT}:Environment variable \"SCRIPTS\" is not defined. " fi
- 01-06-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
[[ -z ${SCRIPTS} ]]
Shouldn't it have been
[[ -z ${SCRIPT} ]]
instead ?
- 01-06-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 6
hi nmset
thx for the help! well spotted!!!
Does this forum have a points awarding system?


