|5-24-12, 02:24 AM||#1|
Join Date: Jun 2003
Moving log files to another location
Since 2006 all of my access_log_*.gz files have been showing up in the root directory that I connect to over SFTP. I manually move these files into a folder called "logs".
How do I get these logs to show up in another location (like my logs folder)? I tried setting a scheduled job of "mv access_log_* logs/" but that won't work, probably because I'm using relative paths. How do I figure out the absolute path that I can use? Is there a better way?
|5-24-12, 04:53 PM||#2|
Thinkin' out loud again
Join Date: Nov 2002
Use your server path instead of a relative path? Should be something similar to:
You can find out what this is in OPS.
Just a shot in the dark here
A good friend will come and bail you out of jail...
but a true friend will be sitting next to you saying,
"Damn... that was fun!"