I was trying to run the brand discovery scraper for the ShopNot in the background on my VPS. Then i found tmux. tmux is a terminal multiplexer. It can run multiple terminal sessions, and run them in the background.
The steps I took -
I saved the logs using: python3 discover_all_brands.py | tee run.log
The run.log contained the command outputs.
Although, one could SSH back in and reattach with: tmux attach -t test
Some useful commands:
Nahin Bin Kaysar 27 May 2026 @ 2:45 AM