Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
will give you the filename: scans-2005-Jul-25.txt
if you want to use different date formates, have a look at
#man date
NOTE: the quotes surrounding the data statement, are backquotes! they are not double quotes ( " ) they are not single quotes ( ' ), but backquotes ( ` )
this is important, otherewise it will not work correctly.
I've updated my cronjob and also ran a test just scanning my /home directory and works like a charm. I will research the man pages if I need a different date scheme.
Many thanks.
Putting the hyphen after scan produces 2 hyphens on my box ie. scans--2005-Jul-25.txt. So I took the hyphen out after scan and it produced the desirerd result...scans-2005-Jul-25.txt.
Something else to bear in mind is that you have no need whatsoever to run a virus scan on a linux box, unless it is a mail server or file server for window$ clients. Yes there are viruses for linux, but unless you are foolish enough to run as full time root, or trigger the virus as root, you have nothing to fear. The linux "viruses" really aren't worth being concerned with.
Thanks for the info. Well I'm definately not running in those capacities. ClamAV does find a couple of files when it runs that are oversized but that's it. I'm paranoid so I don't mind running an antivirus.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.