programming-language情報取得系ホスト名(hostname)On this pageホスト名(hostname) Python pysocket.gethostname() pysocket.gethostname()os.uname()[1]platform.uname()[1] 環境変数からは取れなかった(?) pyos.getenv('HOST') Bash bashhostname Ruby rbSocket.gethostname rbrequire 'socket'Socket.gethostname 📩 ご意見・ご感想はこちらから