python script as centos service

Task completed!py_vk

I made a vkontakte Bot which delete all comments are not from group members!

But I do not want to run it by cron, because it will SPAM all my system with cron emails.

But I found resolution:

  • make a
  • allow worker to run delete scripts on time periods
  • add worker as centos service
  • have fun!

Maybe later I’ll add more code, but now just for example I’ll show only worker and bash script:

And bash to run this as service:




and process:




Based on:

Run python as service:

Schedule python:

Python 100% CPU:



About trianglesis

Александр Брюндтзвельт - гений, филантроп, 100 гривен в кармане. Этот блог - "сток" моих мыслей и заметок. Достаточно одного взгляда на него, чтобы понять, что такой же бардак творится у меня в голове. Если вам этот бардак интересен - милости прошу.
Bookmark the permalink.