Hi everybody!
My first post here...hope to learn quickly.
I just mounted a debian server and start to run some few scripts. They "seem" to run, but sometimes (5% of times) I am getting this error message:
This is /home/jmd/sh/cartas.sh:
And this is /home/jmd/sh/cartastxt.sh
What is driving me crazy is that messages just appear sometimes.
Youy might know that files are send to /home/as400/cartas from a IBM iseries using ftp.
Thank you very much for your help!
My first post here...hope to learn quickly.
I just mounted a debian server and start to run some few scripts. They "seem" to run, but sometimes (5% of times) I am getting this error message:
Code:
/home/jmd/sh/cartas.sh: line 2: [: too many arguments
Code:
#!/bin/bash
if [ -z $(ls /home/as400/cartas) ]
then
echo "" > /dev/null
else
/home/jmd/sh/cartastxt.sh
fi
Code:
#!/bin/bash touch /home/as400/cartas/prueba.txt chown nobody:desa /home/as400/cartas/* chmod 660 /home/as400/cartas/* mv /home/as400/cartas/* /home/datos/comercial/cartas/ rm /home/datos/comercial/cartas/prueba.txt
Youy might know that files are send to /home/as400/cartas from a IBM iseries using ftp.
Thank you very much for your help!
Comment