Can I set up a BH cron log file?

Wendy

Vu+ User
If I set up BHcron to run a simple script at a given time or intervals, can I set up a log file to verify if the cronjob is indeed working?
Many thanks.
 

komodo

Vu+ User
If I set up BHcron to run a simple script at a given time or intervals, can I set up a log file to verify if the cronjob is indeed working?
Many thanks.

It's strange version of cron, so i think only thing you can do is change the start script.

in the /etc/init.d/bootup

change this line

/usr/sbin/crond -c /etc/bhcron/ -L /tmp/cron

But be aware that after update this change will be gone.

Martin
 

Wendy

Vu+ User
Why is it that when I put a log file in /var/log/ it disappears upon reboot of Box whereas if I put the same log file in /etc/ it does not disappear after Reboot?
 

angelofsky1980

BlackHole Driver Specialist
Why is it that when I put a log file in /var/log/ it disappears upon reboot of Box whereas if I put the same log file in /etc/ it does not disappear after Reboot?

Because the /var folder is generated by box on startup and operational status.
/etc folder is into flash memory.
 

dragon7

Vu+ Newbie
Hi!
I am looking for help setting a cron job so it does not work when i switch my box to standby.
It looks like this now:
*/4 * * * * touch /media/hdd/keepalive.log
and it does what it is intended for but I would like that it does not do it all the time and that the hdd gets some rest while the box is on standby.
I read that I need to use if or while to condition the job to work only when the box is active/on, but I have no clue how to do it.
Any help, please...
 
Top