salmon-arch

๐Ÿ› ๏ธ better-crontab - A Safer Way to Use Crontab

๐ŸŒ Download Now

Download better-crontab

๐Ÿ“ Project Overview

better-crontab protects your crontab commands. It helps avoid accidental deletions when using crontab -e (edit) or crontab -r (delete). These commands can remove your scheduled tasks unintentionally. This software adds a layer of safety by asking for confirmation before these actions.

โš ๏ธ Problem Explanation

In Linux systems, the crontab command has important options:

Main Risks:

  1. Adjacent Keys: The e and r keys are next to each other on a QWERTY keyboard.
  2. No Confirmation: Using crontab -r directly deletes your work without asking.
  3. No Recovery: Once deleted, all scheduled tasks vanish instantly.

โœจ Features

๐Ÿ“ฆ Installation Instructions

  1. Download the better-crontab Script
    sudo curl -o /usr/local/bin/better-crontab https://raw.githubusercontent.com/doggy8088/better-crontab/main/better-crontab
    
  2. Review the Script Content (Recommended)
    less /usr/local/bin/better-crontab
    
  3. Set Execution Permissions
    sudo chmod +x /usr/local/bin/better-crontab
    
  4. Create an Alias You can add this line to your ~/.bashrc or ~/.zshrc file:
    alias crontab='/usr/local/bin/better-crontab'
    
  5. Reload Your Shell Configuration Run this command to apply changes:
    source ~/.bashrc
    

Method 2: Via Releases

  1. Visit the Releases Page Go to the better-crontab releases page.

  2. Download the Latest Version Choose the appropriate version for your system and download it.

  3. Install the Script Once downloaded, follow the installation steps similar to Method 1.

๐Ÿ—‚๏ธ Usage Instructions

Basic Commands

  1. Editing Crontab To edit your crontab, simply use:
    crontab -e
    
  2. Deleting Crontab If you want to delete your crontab, use:
    crontab -r
    

    You will receive a confirmation prompt before the deletion proceeds.

  3. Listing Crontab To view your current crontab, run:
    crontab -l
    

๐Ÿ› ๏ธ Troubleshooting

๐Ÿ“ฌ Support

For additional support, please visit the better-crontab GitHub page or open an issue in the repository. Your feedback helps us improve!

๐ŸŒ Contributing

We welcome contributions from everyone! If youโ€™d like to help improve better-crontab, please fork the repository and submit a pull request.

๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿ› ๏ธ Download Now Again

Download better-crontab