From e2447cbb98f04e3884489c2e5a918e66b5d8934d Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Mon, 7 Jun 2021 01:19:50 +0200 Subject: [PATCH] Get hostname --- pastafaristats/send_info_daemon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pastafaristats/send_info_daemon.py b/pastafaristats/send_info_daemon.py index 987c98e..185a1d9 100644 --- a/pastafaristats/send_info_daemon.py +++ b/pastafaristats/send_info_daemon.py @@ -11,11 +11,16 @@ import os from sys import exit from pathlib import Path import signal +from socket import getfqdn #url="http://url/to/info" user_home=str(Path.home()) +hostname=getfqdn() + +print(hostname) + def load_config(): yes_config=False