Greetings from South Africa
I need to know if it is possible to do a du -g targetfilename in crontab on a specifc date and write the results to a log file. If so can someone help me with the script.
Thanks
Cobus
Greetings from South Africa
I need to know if it is possible to do a du -g targetfilename in crontab on a specifc date and write the results to a log file. If so can someone help me with the script.
Thanks
Cobus
dont know what "du -g" is my Red Hat system doesnt use -g.
* * 1 * * {cmd to run} >> /path/to/logfile
That will run {cmd to run} and log the output to /path/to/logfile on the 1st day of every month.
Use it UNIX to identify the file size