installing new crontab
时间: 2023-11-24 19:10:49 浏览: 40
To install a new crontab, follow these steps:
1. Open a terminal window on your Linux or Unix system.
2. Type `crontab -e` and press Enter to open the crontab file in your default editor.
3. Add a new line to the file with the schedule for the command you want to run. For example, to run a script every day at 3:30am, you could add the following line:
```
30 3 * * * /path/to/script.sh
```
Here, `30 3 * * *` specifies the schedule (30 minutes after the third hour of every day), and `/path/to/script.sh` is the path to the script you want to run.
4. Save the file and exit the editor. Your new crontab is now installed and will run according to the schedule you specified. You can verify that it was installed correctly by running `crontab -l`, which will list all of the installed crontabs for your user.