Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if a cron is enabled or not? #117

Open
IIPoliII opened this issue Aug 21, 2019 · 1 comment
Open

Check if a cron is enabled or not? #117

IIPoliII opened this issue Aug 21, 2019 · 1 comment

Comments

@IIPoliII
Copy link

Is it possible to know if a cron is enabled or not? ( i am doing a cron manager for some tasks and i want to be able to see if the job is enabled or is not)

@IIPoliII
Copy link
Author

IIPoliII commented Aug 21, 2019

I founded a fix for checking if an entry exsists

crontab -l | grep -q 'text.txt' && echo 'entry exists' || echo 'entry does not exist'

But i still would prefer a way to do it directly with this code if it's possible c:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant