I am trying to run a Javascript file everyday specifically between 9 am and 5 pm and I was wondering if there is a proper way to do it using cron or some other method. At 5 pm, I would like the running script to be ended as if I hit ctrl-c in the terminal. The following morning, it would automatically restart.