cron

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cron provides utilities for managing system crontab entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCrons

func AddCrons(cronJob, cmdToExec string) error

AddCrons appends a new cron job entry to the system crontab.

func ClearCronJobs

func ClearCronJobs(backupFile string, cronMarker string) error

ClearCronJobs backs up and removes all cron jobs below the specified marker.

func GetCronLocation

func GetCronLocation() string

GetCronLocation returns the platform-specific path to the user's crontab file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL