0

I have a CasperJS script which works. My question is how can I schedule it to run at a specified time every day?

Could not find any good solutions online... Is there any way without using spooky?

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
user1665355
  • 3,324
  • 8
  • 44
  • 84
  • 1
    That's not something a CasperJS script should be concerned about. Since you say that you're on windows, then this should get you going: [What is the Windows version of cron?](http://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron). – Artjom B. Sep 13 '15 at 16:05
  • @ArtjomB. Ok, but is it possible to use `AT` like this : `At 10:00:00AM "c:\users\me\ casperjs script.js"` ?? Or somethink like this, sorry for the syntax... – user1665355 Sep 14 '15 at 09:48

1 Answers1

1

You can use a cron job if you are running a *nix server.

For example you want your script to run everyday at 04:20, run this command :

crontab -e

then add this line :

20 4 * * * /your/command
Lyes BEN
  • 990
  • 4
  • 14