HomeНаука и техникаRelated VideosMore From: Macgyver

How to Run Node.js Scripts from a Cron Job

30 ratings | 6692 views
In this tutorial I will teach you how to run node.js scripts automatically from a cronjob on an Ubuntu Linux system. Full Blog Post: https://askmacgyver.com/blog/tutorial/how-to-run-node-scripts-from-a-cron-job
Html code for embedding videos on your blog
Text Comments (11)
Philipp Albrecht (12 days ago)
Can you please explain why you're choosing node 6.2.2? Is that because it's the latest version you have runing? Also I dont seem to be able to get to that folder... I'm using npm
Tyler Angelier (1 month ago)
Awesome tutorial man, didn't think it'd be that simple.
Macgyver (1 month ago)
Glad to hear it.
David Mozart Andraws (2 months ago)
Great! Cheers dude!
David Mozart Andraws (2 months ago)
eth swe hahahaha
eth swe (2 months ago)
mmm I see what you did there mister
Needs more jpeg (6 months ago)
Ooooooohh Thankyou!!
NWCalvank (1 year ago)
Thanks for the video! Made the setup really straightforward
Macgyver (1 year ago)
Thank you! Let us know if there is anything else you want us to touch on.
Akshay Seth (1 year ago)
you didn't explained it well though !
Macgyver (1 year ago)
Hey Akshay, what part was unclear. In this tutorial we run a node.js script from a cronjob and to determine wether or not this script ran we write the program so that it creates a file. We can then check for the presence of that file to see if the cronjob worked.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.