How to use a virtual machine?

How do I use a virtual machine? I have created a droplet and now I want to code in python and have the machine run on its own. Lets say at 12pm everyday I want it run a function and save the result to my local hard drive, how do I do this?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi, you’ve described a common use case for cron, a common facility on unix/linux. Here’s a tutorial on setting up cron, including how to set the time and save the result to a hard drive - either as a new file or appending an existing file:

How To Use Cron To Automate Tasks On a VPS

More handy info and a crontab generator app here, too:*_*_*

That’s the link for an example crontab setting that will execute every day at 12:00 server time.

Hope this helps - let us know if you have any more questions.