du -g


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers du -g
# 1  
Old 12-03-2008
du -g

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
# 2  
Old 12-03-2008
dont know what "du -g" is my Red Hat system doesnt use -g.

Code:
* * 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.
# 3  
Old 12-03-2008
Use it UNIX to identify the file size
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question