Fedora Linux Support Community & Resources Center
Old 15th August 2012, 05:08 PM
brianblaze Offline
Registered User
Join Date: Jun 2012
Location: Montreal
Posts: 114
Cool For all you genius'

I need to understand coding better... I have a cron job that is using vnstat... I am curious what is going on, I hope someone can help...

if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi
Thank you

---------- Post added at 12:08 PM ---------- Previous post was at 09:53 AM ----------

If "/usr/bin/vnstat" exists and is executable, and the number of files in "/var/lib/vnstat/" is equal to or greater than one, then run the program "/usr/bin/vnstat" with the update flag

I love answering my own questions haha
Reply With Quote

cron job, genius

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Genius Mouspen 8x6 suomaf Using Fedora 19 28th March 2011 05:28 PM
Need help with Genius Mousepen 8x6 John.F Hardware & Laptops 0 2nd December 2010 07:29 PM
مشكلة مع التابلت Genius Joey Violet Hardware & Laptops 2 26th November 2009 04:17 PM
How come you have to be a genius? shallowz Fedora Focus 44 13th July 2007 03:29 AM
Can't use genius webcam tauro_kpo Using Fedora 15 5th March 2007 04:17 AM

Current GMT-time: 21:33 (Wednesday, 23-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin Copyright 2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat