Hi All,
Please help!!! ;)
I have a problem with this code in a batch file (Linux):
Mil=`date +"%Y%m%d%H%M%S"`
batch=`echo "${DatMusic}"`
TabimportEnteteMusic="importentetemusic.dat"
{
grep '^ENTETE' ${IMPORT}/${DatMusic} > ${IMPORT}/$TabimportEnteteMusic
mysql -u basemine --password="basemine" -D basemine -e "delete from importmusic;"
mysql -u basemine --password="basemine" -D basemine -e "delete from importentetemusic;"
} >> $TRACES/batch/$Mil.$batch.log 2>&1
When I run this batch, its answer is:
/home/mmoine/sgbd_mysql/batch/importMusic.sh: line 51: /batch/20100319160018.afce01aa.cr.log: Aucun fichier ou répertoire de ce type
(in english, I suppose: "No files or Directory found")
So, please, how can I put all generated messages in this log file?
Thanks for your answers.
Sorry for my english ;)