In my Debian
instance at Google Cloud, I want to know if there is a scheduler so that I can submit my shell script to run my program in my instance without having to keep the terminal open all the time.
Thank you
In my Debian
instance at Google Cloud, I want to know if there is a scheduler so that I can submit my shell script to run my program in my instance without having to keep the terminal open all the time.
Thank you
Yes, there are multiple tools that can do the job, depending on your exact use-case.
If you have a single shell-script or command that you need to leave running, the tool you're after is called screen.
If your script provides a service (e.g. web-server), you should daemonise it. There are various tools to help you depending on your application platform and OS version, among them Systemd, Supervisord, Sysvinit, PM2, etc.
If you need to run the task repeatedly, use cron.
All tools are OS-based and are independent of hosting platform.