Hi all,
In /var/log I created a domoticz.log file. I like searching in this file to: "incomming connection from:". Somewhere on the forum there is written an appropriate command. The command has something to do with 'grep' and the location of the domoticz .log file. I have searched for a long time without success. I hope someone can help.
Thanks in advance!
Jan
Linux noob needs a little help Topic is solved
Moderators: leecollings, remb0
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Linux noob needs a little help
Must have been like this:
grep 'incoming connection from' /var/log/domoticz.log
Or like this:
cat /var/log/domoticz.log | grep 'incoming connection from'
Sent from my D6603 using Tapatalk
grep 'incoming connection from' /var/log/domoticz.log
Or like this:
cat /var/log/domoticz.log | grep 'incoming connection from'
Sent from my D6603 using Tapatalk
-
- Posts: 12
- Joined: Friday 15 April 2016 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: @home
- Contact:
Re: Linux noob needs a little help
I would use a grep -i "search text" /var/log/domoticz.log
With the -i it searches case insensitive
With the -i it searches case insensitive

-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Linux noob needs a little help
sirray,
You're right, using ctrl+r and other shortcuts...
Also when searching special character "escape" them woth a backslash before the character, like: "connection from\:"
Sent from my D6603 using Tapatalk
You're right, using ctrl+r and other shortcuts...
Also when searching special character "escape" them woth a backslash before the character, like: "connection from\:"
Sent from my D6603 using Tapatalk
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Linux noob needs a little help
Hello stlaha and sirray,
Thank you for your attention! I was looking for: cat /var/log/domoticz.log | grep 'Incoming connection from'
Jan
Thank you for your attention! I was looking for: cat /var/log/domoticz.log | grep 'Incoming connection from'
Jan
Who is online
Users browsing this forum: No registered users and 1 guest