I have a trace file, lets say trace0.dat
I need to make this file empty every Monday, 9:00 am.
I have created a file called dlttrace as follows and saved it:
> trace0.dat
Now I put this file dlttrace in crontab as follows:
0 9 * * 1 /trace/dlttrace >> dlttrace.out 2>&1
On Monday 9:00 am, this script did run and my output file dlttrace.out generated but its empty and trace0.dat file is NOT empty, still it has data which I wanted to remove it from the file.
Any idea or help would be highly appreciated.
Thank you,
Hasham
I need to make this file empty every Monday, 9:00 am.
I have created a file called dlttrace as follows and saved it:
> trace0.dat
Now I put this file dlttrace in crontab as follows:
0 9 * * 1 /trace/dlttrace >> dlttrace.out 2>&1
On Monday 9:00 am, this script did run and my output file dlttrace.out generated but its empty and trace0.dat file is NOT empty, still it has data which I wanted to remove it from the file.
Any idea or help would be highly appreciated.
Thank you,
Hasham