From: invincible on
The piece of script is as below......

FLAG="WARNING"
MSG="testing1752"
efile=`find /home/apps/Tivoli -name lcf_env.sh 2>/dev/
null|grep -v "_dev" | head -1`
. $efile # Setup lcf
enviromental variables.
wmsg=$LCF_BINDIR/../bin/wpostemsg # Identify
executable.
$wmsg -r $FLAG -m $MSG chkfs.$FLAG LOGFILE

The above script gives the error as below....

Error parsing input, the error occurred here: WARNING
../testfs1[66]: -: 0403-012 A test command parameter is not valid.

Can anyone let me know the reason for this...?

From: Joachim Schmitz on
invincible wrote:
> The piece of script is as below......
>
> FLAG="WARNING"
> MSG="testing1752"
> efile=`find /home/apps/Tivoli -name lcf_env.sh 2>/dev/
> null|grep -v "_dev" | head -1`
> . $efile # Setup lcf
> enviromental variables.
> wmsg=$LCF_BINDIR/../bin/wpostemsg # Identify
> executable.
> $wmsg -r $FLAG -m $MSG chkfs.$FLAG LOGFILE
>
> The above script gives the error as below....
>
> Error parsing input, the error occurred here: WARNING
> ./testfs1[66]: -: 0403-012 A test command parameter is not valid.
>
> Can anyone let me know the reason for this...?
surround the offendig code with
set -x
....
set +x

And watch the output. Guess there's something that doesn't expand as you
expect it

Bye, Jojo


From: invincible on

> > Can anyone let me know the reason for this...?
>
> surround the offendig code with
> set -x
> ...
> set +x
>
> And watch the output. Guess there's something that doesn't expand as you
> expect it
>
> Bye, Jojo

Excellent, It's worked fo me now. I did not set the set +x but still
it did work. I did it for the whole programme.