Skip to content
  • DavisSystem
  • Articles
  • Topics
  • Home Lab
  • About
  • Search
DavisSystem Search
Menu
  • Articles
  • Topics
  • Home Lab
  • About

Python Script from Shell

By Sean · Published Jan 5, 2023

SnippetsPythonShell

To make a Python script executable from the shell, the environment to the top of the script:

#!/usr/bin/env python3

Topics in this article

PythonShell

Related notes

  • Automate with Expect

All articles · Back to top

Sean Davis

Cybersecurity Architect
Waikato, New Zealand

  • All articles
  • Browse by format
  • All tags
  • Recipes

GitHub

© Sean Davis

RSS feed · About