Informix - problema con shell

 
Vista:
sin imagen de perfil

problema con shell

Publicado por Ana (5 intervenciones) el 23/07/2010 23:13:25
Buenas tardes!

Quien me pueda orientar se agradece!. mi problema es el siguiente, se modifico un shell que se encuentra ubicado en /usr/local/bin. el cambio consistio en pasarle otro parametro que capturaria el tamaño de la fuente. Desde el programa en informix al hacer el llamado del mismo le paso el tamaño de fuente que necesito, en el shell se le coloco en echo para que mostrase que era lo que estaba recibiendo y de hecho lo muestra como tal, pero al imprimirlo imprime como originalmente lo hacia a 8.1. Que debo verificar? algun servicio, o es algo que esta mal escrito?

a continuacion contenido del shell

#!/bin/bash
#!/bin/bash
#
#CADENA1=^O
#CADENA2=^[
#CADENA3=^R
#CADENA3=W0
#CADENA4=W1
export TMPDIR=$HOME

LISTADO=$1
FINAL=$2
ORI=$3
FUENTE=$4

if [ -z $ORI ];then
ORIENTACION="--portrait"
else
if [ "$ORI" == "h" ];then
ORIENTACION="--landscape"
else
ORIENTACION="--portrait"
fi
fi

if [ -z $FUENTE ];then
FUENTE="8.1"
fi

LISTADOTMP=$LISTADO.$LOGNAME
sed 's/^D//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^O//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^R//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[W1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[W0//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[0//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[2//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[F//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[E//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[G//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[H//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[S0//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[S1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[T//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[4//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[5//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[x1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[x0//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[k0//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[k1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[P//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[M//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[-1//g' $LISTADO > $LISTADOTMP
cp $LISTADOTMP $LISTADO
sed 's/^[-0//g' $LISTADO > $LISTADOTMP
#cp $LISTADOTMP $LISTADO

DIR=$(dirname $LISTADO)
BASE=$(basename $LISTADO)

cp $LISTADOTMP $HOME/$BASE.txt

echo $FUENTE

#a2ps --medium=Letter --borders=off --row=1 --columns=1 --no-header --silent --font-size="8.5" --portrait -o --lines-per-page=66 -o $HOME/$BASE.ps $HOME/$BASE.txt
a2ps --borders=off --row=1 --columns=1 --no-header --silent $ORIENTACION -o --font-size="$FUENTE" --lines-per-page=66 -o $HOME/$BASE.ps $HOME/$BASE.txt
ps2pdf $HOME/$BASE.ps $HOME/$BASE.pdf

rm $LISTADOTMP
rm $HOME/$BASE.ps
rm $HOME/$BASE.txt
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder