DEV Community

Akash P.
Akash P.

Posted on

populate crontab using api calls possible ?

Okay, so i was figuring out and thinking about managing crontab tasks using http api call or something?

example when i call api /cron/add with body

{
command: "echo 'abc'",
time: "* * * * *"
}

is it possible to implement such thing if yes then can you please give hints about how i can or using which tools i can do that ?

i have ec2 instance running for crontab tasks but i want them to add/remove automatically using api calls

Thanks.

Top comments (0)