How to send output from a python script to an email address

后端 未结 6 859
野性不改
野性不改 2021-02-05 22:38

I have a threaded python script that pings 20 nodes on a local area network, and prints out the status of each: Node is Alive, Node is Down, etc.. I would like to have this outp

6条回答
  •  梦谈多话
    2021-02-05 23:11

    If it runs once a week, you will probably run it from crontab?

    30 2 * * 5  python yourScript.py | mail -s outputFromScript your@email.address
    

提交回复
热议问题