Linux noob needs a little help Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Linux noob needs a little help

Post by Jan Jansen »

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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Linux noob needs a little help

Post by stlaha2007 »

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
sirray
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

Post by sirray »

I would use a grep -i "search text" /var/log/domoticz.log

With the -i it searches case insensitive :)
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Linux noob needs a little help

Post by stlaha2007 »

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
Jan Jansen
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

Post by Jan Jansen »

Hello stlaha and sirray,

Thank you for your attention! I was looking for: cat /var/log/domoticz.log | grep 'Incoming connection from'

Jan
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest