Hoba Server

Modified on Wed, 31 Jan at 5:21 AM

start the service:

cd /root/srv
nohup python3 main.py &



view server logs:

view all:

cat /root/srv/server.log


View last 20 lines:

tail /root/srv/server.log


view in real time:

cd /root/srv
tail -f /root/srv/server.log




restart main.py:

cd /root/srv
pgrep -f main.py (to get PID)
KILL <PID>
nohup python3 main.py &




server log file size:

ls -lh /root/srv/server.log

regular expression to search log files (first CD to service)

cd /root/srv
grep '^30/01/2024 \(09:\|1[0-9]:\|20:\|21:00\)' /root/srv/server.log

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article