Search code examples
javascriptnode.jsweb-hostingserverside-javascript

Schedule Javascript Server Side Script Execution


  • Is it possible to run javascript server side?
  • Is it possible to access a script http://mywebsite.com/cgi-bin/performDailyIndex.js. And it will schedule a script to run every four hours? Will a webhost allow myself to do this or is this bad webmaster practices?

The idea is to trigger my webcrawler/indexer for my website - a specialised search engine - to run & index a set of web seeds.

Maybe I can configure through cpanel a way to automatically run my script at a certain time?


Solution

  • For Javascript on server side you can use :

    Up to you to find a provider with a scheduler. I take an example, Heroku, it provide a scheduler addon :

    ps: Heroku can host NodeJS.

    Hope it help.