I am having problems with the following commands which run in a script. It looses it after the first log. Any suggestions?
Thanks Kat
f=/home/rm35430/kat/ods00000_sql.log
cp -p $f $f.`date +%y%m%d%H%M`
cat >$f<<!
g=/home/rm35430/kat/ods00100_sql.log
cp -p $g $g.`date +%y%m%d%H%M`
cat >$g<<...
Mike
I have problelms with the following
It looses it somewhere after the first statement.
And all I get is the forst log.
Can you suggest what I need to do?
Thanks
Kat
f=/home/rm35430/kat/ods00000_sql.log
cp -p $f $f.`date +%y%m%d%H%M`
cat >$f<<!
g=/home/rm35430/kat/ods00100_sql.log
cp -p...
Thank you so much for the fast reply!
Would the mv command move the whole file? I have a reference to the file in an application that will not allow me to move or delete the actual file
Thanks Kat
Hello,
I need to creat a script that will run in cron that emptys a file with out removing it and transferes to a new sequenced file. Can anyone help?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.