Chrissirhc
Programmer
I've got a crontab that runs a script and in the script is a line to rename a directory. Something like mv /app/myapp/logs/AppLog.log /app/myapp/logs/AppLog<date>.log
Anyway my crontab is emailing me
mv: cannot rename /app/myapp/logs/AppLog.log: No such file or directory
When there blatently is a file there... If I type "cp /app/myapp/logs/AppLog.log /app/myapp/logs/test.log" That works.
I can't do much testing because this is in a controlled environment. So I'm looking to you guys for ideas...
Maybe my script has some hidden characters that I'm not aware of???
Thanks in advance,
Chris
Anyway my crontab is emailing me
mv: cannot rename /app/myapp/logs/AppLog.log: No such file or directory
When there blatently is a file there... If I type "cp /app/myapp/logs/AppLog.log /app/myapp/logs/test.log" That works.
I can't do much testing because this is in a controlled environment. So I'm looking to you guys for ideas...
Maybe my script has some hidden characters that I'm not aware of???
Thanks in advance,
Chris