Skip to content

Instantly share code, notes, and snippets.

@curzona
Created July 11, 2015 02:23
Show Gist options
  • Save curzona/0f69a7bd6e391bb62fb1 to your computer and use it in GitHub Desktop.
Save curzona/0f69a7bd6e391bb62fb1 to your computer and use it in GitHub Desktop.
Run python function from command line
#!/bin/bash
python -c "import thing; thing.foo()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment