From e201da9a4b3f616575fa71224cfae81a34a8f497 Mon Sep 17 00:00:00 2001 From: Tamas Szirtesi Date: Mon, 9 Oct 2023 14:29:17 +0200 Subject: [PATCH] Added activating virtualenv --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a551faa..9d00f95 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,16 @@ just send an exit message into the watchdog file: `echo exit > watchdog.fifo` There are two ways to do it ### In foreground -`$ python main.py` +``` +$ source venv/bin/activate +$ python main.py +``` ### In background -`$ nohup python main.py > log/hc_spider.log 2> log/hc_spider.err <&- &` +``` +$ source venv/bin/activate +$ nohup python main.py > log/hc_spider.log 2> log/hc_spider.err <&- & +``` In case you running the tool in background you can stop the execution with `$ echo exit > `