pythonpython-3.xdaemonlaunch-daemon

Daemon with python 3


I am writing a script in python3 for Ubuntu that should be executed all X Minutes and should automatic start after logging in. Therefore I want to create a daemon (is it the right solution for that?) but I haven't found any modules / examples for python3, just for python 2.X. Do you know something what I can work with?

Thank you,


Solution

  • Suppose for python script name is monitor. use following steps:

    this will execute you monitor whenever you login for all tty.