Help - Search - Members - Calendar
Full Version: Crontab Problems
Linuxhelp > Support > Technical Support

I've read the Crontab guide (even printed it out), BDC (BitDefender Console Edition) was working ok with RH9, and even works ok If I manually type in the commands in Whitebox EL 3.0

But when I try to run it with cron nothing happens.

Here is my cronjob file :

[root@thor home]# cat mycronjob
05 22 * * * /usr/bin/bdc --update
05 23 * * * /usr/bin/bdc --files / --all --disinfect --log=/home/virus.txt[root@
thor home]#

when I type
/etc/init.d/cron status

it reports that it's up and running

what did I do wrong here ? , I'm trying to run bdc every day at the specified time

Robert B
05 22 * * * root /usr/bin/bdc --update
05 23 * * * root /usr/bin/bdc --files / --all --disinfect --log=/home/virus.txt

Try that, so it will run as root. *shrugs*
or ... use the command:

crontab -e

(as root)

and paste in your original stuff...

look at the /var/log/cron file to see if it runs. sometimes you need to add a path statement in the top of scripts that run as crons (I don't know if bdc is a script or a binary file) ...

sometimes some files require a terminal to be passed in to run correctly .... so maybe this:

05 22 * * * TERM=xterm; /usr/bin/bdc --update

that root stuff did not work , it wont show up nothing in the cron log ,

bdc is a @bdc in /usr/bin/

it was working ok under RH9 with using crontab like that , but for whitebox it just won't work with cron,

what can I do?

Robert B
this is how my mycrontab looks like ,


05 01 * * * TERM=xterm;/usr/bin/bdc --update
39 07 * * * TERM=xterm;/usr/bin/bdc --files / --all --disinfect --log=/home/virus.txt

and this is what is logged in /var/log/cron on the same computer

Apr 27 00:08:23 thor crond[1024]: (CRON) STARTUP (fork ok)
Apr 27 00:09:52 thor crontab[1168]: (root) DELETE (root)
Apr 27 00:09:56 thor crontab[1169]: (root) REPLACE (root)
Apr 27 00:09:59 thor crontab[1170]: (root) LIST (root)
Apr 27 00:10:00 thor crond[1024]: (root) RELOAD (cron/root)
Apr 27 01:01:00 thor CROND[1175]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 01:05:00 thor CROND[1177]: (root) CMD (root /usr/bin/bdc --update)
Apr 27 02:01:00 thor CROND[1181]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 03:01:00 thor CROND[1183]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 04:01:00 thor CROND[1185]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 04:02:00 thor CROND[1187]: (root) CMD (run-parts /etc/cron.daily)
Apr 27 05:01:00 thor CROND[1408]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 06:01:00 thor CROND[1410]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 07:01:00 thor CROND[1415]: (root) CMD (run-parts /etc/cron.hourly)
Apr 27 07:29:17 thor crontab[1727]: (root) BEGIN EDIT (root)
Apr 27 07:29:30 thor crontab[1729]: (root) DELETE (root)
Apr 27 07:29:34 thor crontab[1731]: (root) LIST (root)
Apr 27 07:29:37 thor crontab[1732]: (root) REPLACE (root)
Apr 27 07:29:39 thor crontab[1733]: (root) LIST (root)
Apr 27 07:30:00 thor crond[1024]: (root) RELOAD (cron/root)
Apr 27 07:36:29 thor crontab[1790]: (root) DELETE (root)
Apr 27 07:36:33 thor crontab[1791]: (root) REPLACE (root)
Apr 27 07:36:36 thor crontab[1792]: (root) LIST (root)
Apr 27 07:37:00 thor crond[1024]: (root) RELOAD (cron/root)
Apr 27 08:01:00 thor CROND[1797]: (root) CMD (run-parts /etc/cron.hourly)

the strangest thing is, that I've got 3 Bridge/Master Browser/Samba Server/Wins Server and on one of them (, is working ok

Robert B
It looks like the update ran at 01:05

Nothing happened at 07:39....

Try it again...

well I was playing with it, and it seems it even runs the scan at the time, but give no log out, there another good console antivirus software (opensource possibly) that I could use with Whitebox Linux?

Robert B
I like ClamAV ... that is what I use for my linux E-mail server to keep windows guys from getting infected e-mail and screwing up the network. I even have the 3 rpms compiled for whitebox ... here is a tar of the 3 files (untar it into a directory and do rpm -Uvh clamav-0.70-1.i386.rpm ... you probably won't need the other 2 rpms to just scan the PC ... but if you want to also scan e-mail into and out of a sendmail/post fix server, you can use the other 2 rpm's when setting up to do that):

I didn't install it to scan my hard drive, but it can do that too.

(As I said, the RPMs I provided for download are for WhiteBox EL ... you can get ones for RH9 here).

Here is the help:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.