Cronjobs

Web hosting, MySQL, PHP and all that good stuff.

Moderator: Lillian.W@AST

Post Reply
aj2
Posts: 38
youtube meble na wymiar Warszawa
Joined: Sat Nov 23, 2013 5:54 pm
Location: Netherlands

Cronjobs

Post by aj2 »

Hello,
I installed Spotweb on the AS-604T. This runs fine. I need to create a cronjob to update the database automatically. Now I have update manually by activating retrieve.php
Lazy as I am I want to do this with a cron task. Where can I edit the cron file?

Thanks.
Another Day At The Office
User avatar
WOODY@AST
Posts: 101
Joined: Tue Jun 19, 2012 11:51 pm
Contact:

Re: Cronjobs

Post by WOODY@AST »

Hi here,
Please use putty or "Shell in A Box" App login NAS
crontab file path: /usr/builtin/etc/crontabs/

Thanks!!! :D
Storage: AS5104T
USB Speaker: Logitech Z105
Network: BUFFALO WZR-HP-G450H & Netgear R7500
Laptop: Apple MACBOOk AIR: OS X Mountain Lion & Windows 7 64-bit Ultimate
Media Player: ASUSTOR NAS with KODI
Portable: The NEW HTC ONE & Sony Xperia Z3, iPhone 3GS & iPad
aj2
Posts: 38
Joined: Sat Nov 23, 2013 5:54 pm
Location: Netherlands

Re: Cronjobs

Post by aj2 »

Thank you.


Using Putty. I will give it a try.
Now I have added this line to the file root:

Code: Select all

#Spotweb Updater
*/10 * * * * root cd /volume1/Web/spotweb && /volume0/usr/builtin/bin/php retrieve.php > /dev/null
Hope it works

Thanks again.

Cheers
Another Day At The Office
aj2
Posts: 38
Joined: Sat Nov 23, 2013 5:54 pm
Location: Netherlands

Re: Cronjobs

Post by aj2 »

It works

Adding the following code to the file named "root" in:

Code: Select all

/volume0/usr/builtin/etc/crontabs
Add the following line to it:

Code: Select all

1,31, * * * * /volume0/usr/builtin/bin/php /volume1/Web/spotweb/retrieve.php
Now spotweb is updating every half hour.

To restart the cron, enter in Putty

Code: Select all

/etc/init.d/S41crond stop
/etc/init.d/S41crond start
Tnx
Another Day At The Office
User avatar
WOODY@AST
Posts: 101
Joined: Tue Jun 19, 2012 11:51 pm
Contact:

Re: Cronjobs

Post by WOODY@AST »

Good Job!!! :D
Storage: AS5104T
USB Speaker: Logitech Z105
Network: BUFFALO WZR-HP-G450H & Netgear R7500
Laptop: Apple MACBOOk AIR: OS X Mountain Lion & Windows 7 64-bit Ultimate
Media Player: ASUSTOR NAS with KODI
Portable: The NEW HTC ONE & Sony Xperia Z3, iPhone 3GS & iPad
Post Reply

Return to “Web Hosting”