1

I've requirement to share static html pages within intranet. I figured out that http.server is working perfectly for this purpose.

python -m http.server 8080

Instead of keeping terminal open, I want to run the command in background.

Matt
  • 27,170
  • 6
  • 80
  • 74
vikramvi
  • 3,312
  • 10
  • 45
  • 68
  • Take a look at how to run programs via `LaunchDaemon`. – Barmar Jan 09 '17 at 15:56
  • Possible duplicate of [How to move SimpleSocket server into a background process](http://stackoverflow.com/questions/41334729/how-to-move-simplesocket-server-into-a-background-process) –  Jan 09 '17 at 16:35

1 Answers1

3

Found answer in post

Run python in terminal and dont terminate it when terminal is closed

This question can be marked duplicate of above post than one suggested by comment

Thanks & Regards, Vikram

Community
  • 1
  • 1
vikramvi
  • 3,312
  • 10
  • 45
  • 68