I have a batch application on Windows that I run every day at midnight. Recently, I converted this into a Linux shell script on a Linux machine and would like to similarly run it every day at midnight. My requirements are as follows:-
- For the shell script to run in the foreground - this is to allow me to see the output of the running process and correct/fix things if it fails.
- Similar to how the Windows task scheduler works, I would like to have a list of scripts that I can run, and those lists can be enabled/disabled.
- (Optional) Ideally, the Task Scheduler equivalent can be modified programmatically. This would allow me to disable/enable tasks based on the result of an already run task.
Is this doable? I've seen the links below but they don't contain all the criteria that I need for my use case. If one of the links below is the correct way to go then an example can be really helpful.
- Linux alternative to Windows task scheduler
- How to schedule jobs in Linux using cron, anacron, and at
- LinuxQuestions: scheduling process in the foreground