The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Dummies Questions & Answers
du -g
Tags
beginners
,
du
Thread Tools
Search this Thread
Top Forums
UNIX for Dummies Questions & Answers
du -g
#
1
12-03-2008
cobus
Registered User
2,
0
Join Date: Dec 2008
Last Activity: 3 December 2008, 3:22 PM EST
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
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
cobus
View Public Profile for cobus
Find all posts by cobus
#
2
12-03-2008
Ikon
Registered User
748,
11
Join Date: Jul 2008
Last Activity: 15 January 2015, 10:57 AM EST
Location: Frederick, MD
Posts: 748
Thanks Given: 4
Thanked 11 Times in 10 Posts
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.
Ikon
View Public Profile for Ikon
Find all posts by Ikon
#
3
12-03-2008
cobus
Registered User
2,
0
Join Date: Dec 2008
Last Activity: 3 December 2008, 3:22 PM EST
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Use it UNIX to identify the file size
cobus
View Public Profile for cobus
Find all posts by cobus
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×