Hey alll,
I'd like to set up a CRONTAB file that would do the following on the FIRST day of every month:
1) Copy a file called ftpLog.txt to a new location and append something to its name, such as "_JAN" but would be specific to the previous month.
2) Open the old version of ftpLog.txt and completely clean it out.
So far, this is what I have:
0 0 1 * * (cp /var/ /var/ rm /var/ mk /var/ chmod a+wr ftpLog.txt) >/dev/null 2>&1
Any help would be most appreciated.
- MT
I'd like to set up a CRONTAB file that would do the following on the FIRST day of every month:
1) Copy a file called ftpLog.txt to a new location and append something to its name, such as "_JAN" but would be specific to the previous month.
2) Open the old version of ftpLog.txt and completely clean it out.
So far, this is what I have:
0 0 1 * * (cp /var/ /var/ rm /var/ mk /var/ chmod a+wr ftpLog.txt) >/dev/null 2>&1
Any help would be most appreciated.
- MT