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.
Cronjobs
Moderator: Lillian.W@AST
-
- Posts: 38
- youtube meble na wymiar Warszawa
- Joined: Sat Nov 23, 2013 5:54 pm
- Location: Netherlands
Cronjobs
Another Day At The Office
- WOODY@AST
- Posts: 101
- Joined: Tue Jun 19, 2012 11:51 pm
- Contact:
Re: Cronjobs
Hi here,
Please use putty or "Shell in A Box" App login NAS
crontab file path: /usr/builtin/etc/crontabs/
Thanks!!!
Please use putty or "Shell in A Box" App login NAS
crontab file path: /usr/builtin/etc/crontabs/
Thanks!!!
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
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
-
- Posts: 38
- Joined: Sat Nov 23, 2013 5:54 pm
- Location: Netherlands
Re: Cronjobs
Thank you.
Using Putty. I will give it a try.
Now I have added this line to the file root:
Hope it works
Thanks again.
Cheers
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
Thanks again.
Cheers
Another Day At The Office
-
- Posts: 38
- Joined: Sat Nov 23, 2013 5:54 pm
- Location: Netherlands
Re: Cronjobs
It works
Adding the following code to the file named "root" in:
Add the following line to it:
Now spotweb is updating every half hour.
To restart the cron, enter in Putty
Tnx
Adding the following code to the file named "root" in:
Code: Select all
/volume0/usr/builtin/etc/crontabs
Code: Select all
1,31, * * * * /volume0/usr/builtin/bin/php /volume1/Web/spotweb/retrieve.php
To restart the cron, enter in Putty
Code: Select all
/etc/init.d/S41crond stop
/etc/init.d/S41crond start
Another Day At The Office
- WOODY@AST
- Posts: 101
- Joined: Tue Jun 19, 2012 11:51 pm
- Contact:
Re: Cronjobs
Good Job!!!
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
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