Crontab command allows you to schedule the execution of tasks on a regular basis.
For instance, you can schedule the execution of shell scripts on a flexible schedule instead of manually invoking those shell scripts.
How Crontab works
Here are the points to keep in mind:
- Crontab tasks do not inherit the environment of a specific user, which means that you must ensure that all required environment variables are set properly (such as invoking a script that contains those variables).
- You can schedule a task to run based on the following:
an hourly, daily, or weekly basis a specific day of the month a specific month or year
Browse
The following command displays the currently scheduled jobs for your machine:
$ sudo crontab
In other ways, you can use crontab -l to list all the jobs present.
$ sudo crontab -l
Edit
You need to be either the root user or use sudo in order to modify crontab (in the /usr/bin directory) with the following command:
$ sudo crontab -e
Replace
The following command replaces the current set of jobs with the jobs in the file crontab.new:
$ crontab -r < crontab.new
More Srinimf
-
Secure S3 File Upload Using API Gateway, Lambda & PostgreSQL (Complete AWS Architecture Guide
Modern applications often allow users to upload files—documents, invoices, images, or datasets. But a production-grade upload pipeline must be secure, scalable, and well-organized. In this article, we will build a complete end-to-end architecture where: We will implement this using Amazon API Gateway, AWS Lambda, PostgreSQL, and Amazon S3. This architecture is widely used in cloud-native…
-
AI Agents in Data Engineering: Everything You Need to Know
AI agents are revolutionizing data engineering by automating tasks such as monitoring pipelines, generating SQL queries, and ensuring data quality. They enhance productivity, speed up troubleshooting, and improve data accessibility for users. While offering significant advantages, AI agents also face challenges in security, accuracy, and integration with existing systems.
-
The End-to-End AI Stack – A Real Guide for Developers to Code, Create, and Execute
Artificial Intelligence tools are on the rise, from writing assistants to coding helpers and automation platforms. However, many professionals struggle to compare these tools effectively. This is where the AI Stack becomes important. Modern AI tools like ChatGPT, NotebookLM, and Antigravity serve different purposes, and understanding their roles helps in: Layer 1: Conversational AI (Thinking…






