How To Schedule A File Download From Web

SMB, NFS, AFP, FTP, web file manager and Rsync server.
Locked
User avatar
elimark1
Posts: 2
Joined: 09 Feb 2021, 02:18

How To Schedule A File Download From Web

Post by elimark1 »

Hello!

Does anyone know how to schedule TOS to download a file from the web, every 12 hours?

I am a new user. I come from OMW. Over there, you can schedule a file download using CURL.

Here is the command I used: curl -o newfilename.txt www .website. com/serverfile.txt -- minus the spaces in the URL. I just didn't want it this example to auto link.

Then, in the scheduler section, you can set the frequency of downloading the file.

What application could I install in TOS that would give me the same functionality?
User avatar
TMRyan
TerraMaster Team
Posts: 822
Joined: 01 Dec 2020, 11:50
China

Re: How To Schedule A File Download From Web

Post by TMRyan »

Hi,
This requires you to write a simple script, and then use the command "crontab -e" to add timing tasks.
The scheduled task will be invalid after restart.
We are adding a scheduled task function to TOS, you need to wait for this function.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement)
User avatar
outkastm
Posts: 1191
Joined: 29 Dec 2020, 23:52

Re: How To Schedule A File Download From Web

Post by outkastm »

elimark1 wrote: 08 Apr 2021, 00:24 Hello!

Does anyone know how to schedule TOS to download a file from the web, every 12 hours?

I am a new user. I come from OMW. Over there, you can schedule a file download using CURL.

Here is the command I used: curl -o newfilename.txt www .website. com/serverfile.txt -- minus the spaces in the URL. I just didn't want it this example to auto link.

Then, in the scheduler section, you can set the frequency of downloading the file.

What application could I install in TOS that would give me the same functionality?
You can use the 3rd party module Cron_okm to schedule your task. Jobs are persistent after reboot
Locked