Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Telegram Push notifications

#48
Yes, this is 1.4.1 on a Pi.
However, I had a closer look at the output of the nems-info  script.
Code:
host_ip=$(getent ahosts "$host" | awk '{print $1; exit}')


returns: 
Code:
2a00:1450:400e:806::200e


so, this is an IPV6 address...

Code:
interface=`ip route get "$host_ip"`

returns:

Code:
2a00:1450:400e:806::200e from :: via fe80::de53:7cff:feec:d56b dev eth0 proto ra src 2a02:1812:1709:ac00:ba27:ebff:fe42:c170 metric 1024 hoplimit 64 pref high

The grep that this is piped to probably gets confused...

EDIT: I experimented somewhat with the grep command and this does the trick:


Code:
| grep -Po '(?<=dev )[^ ]+'



Code:
echo "2a00:1450:400e:806::200e from :: via fe80::de53:7cff:feec:d56b dev eth0 proto ra src 2a02:1812:1709:ac00:ba27:ebff:fe42:c170 metric 1024 hoplimit 64 pref high" | grep -Po '(?<=dev )[^ ]+'
eth0

 
Messages In This Thread
Telegram Push notifications - by baggins - 10-20-2017, 12:37 PM
RE: Telegram Push notifications - by Robbie Ferguson - 10-20-2017, 02:00 PM
RE: Telegram Push notifications - by baggins - 10-20-2017, 04:24 PM
RE: Telegram Push notifications - by Robbie Ferguson - 10-23-2017, 06:48 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-23-2017, 10:43 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-25-2017, 09:39 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-25-2017, 10:31 AM
RE: Telegram Push notifications - by Kaganishu - 10-26-2018, 11:34 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-26-2018, 08:53 PM
RE: Telegram Push notifications - by Kaganishu - 10-27-2018, 03:42 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-29-2018, 09:08 AM
RE: Telegram Push notifications - by Kaganishu - 10-29-2018, 10:49 AM
RE: Telegram Push notifications - by Robbie Ferguson - 10-29-2018, 02:38 PM
RE: Telegram Push notifications - by Kaganishu - 10-30-2018, 04:09 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-08-2018, 11:33 AM
RE: Telegram Push notifications - by baggins - 11-25-2018, 05:47 AM
RE: Telegram Push notifications - by Kaganishu - 11-25-2018, 09:29 AM
RE: Telegram Push notifications - by baggins - 11-25-2018, 09:58 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-26-2018, 11:05 AM
RE: Telegram Push notifications - by baggins - 11-27-2018, 05:13 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-27-2018, 10:00 AM
RE: Telegram Push notifications - by baggins - 11-28-2018, 09:50 AM
RE: Telegram Push notifications - by baggins - 11-28-2018, 11:02 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-28-2018, 11:52 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-28-2018, 12:45 PM
RE: Telegram Push notifications - by baggins - 11-28-2018, 12:50 PM
RE: Telegram Push notifications - by Robbie Ferguson - 11-28-2018, 01:41 PM
RE: Telegram Push notifications - by Robbie Ferguson - 11-28-2018, 02:05 PM
RE: Telegram Push notifications - by baggins - 11-28-2018, 02:39 PM
RE: Telegram Push notifications - by Robbie Ferguson - 11-28-2018, 02:56 PM
RE: Telegram Push notifications - by baggins - 11-28-2018, 07:16 PM
RE: Telegram Push notifications - by Robbie Ferguson - 11-29-2018, 11:38 AM
RE: Telegram Push notifications - by Robbie Ferguson - 11-29-2018, 12:20 PM
RE: Telegram Push notifications - by baggins - 11-29-2018, 12:30 PM
RE: Telegram Push notifications - by Robbie Ferguson - 11-29-2018, 01:32 PM
RE: Telegram Push notifications - by baggins - 12-02-2018, 11:21 AM
RE: Telegram Push notifications - by Robbie Ferguson - 12-02-2018, 01:04 PM
RE: Telegram Push notifications - by baggins - 12-06-2018, 05:21 AM
RE: Telegram Push notifications - by Robbie Ferguson - 12-11-2018, 11:22 AM
RE: Telegram Push notifications - by baggins - 12-11-2018, 11:53 AM
RE: Telegram Push notifications - by Robbie Ferguson - 12-11-2018, 12:09 PM
RE: Telegram Push notifications - by baggins - 12-11-2018, 12:24 PM
RE: Telegram Push notifications - by Robbie Ferguson - 12-11-2018, 02:29 PM
RE: Telegram Push notifications - by baggins - 12-11-2018, 06:14 PM
RE: Telegram Push notifications - by Robbie Ferguson - 12-16-2018, 04:09 PM
RE: Telegram Push notifications - by baggins - 12-16-2018, 05:58 PM
RE: Telegram Push notifications - by Robbie Ferguson - 12-16-2018, 09:24 PM
RE: Telegram Push notifications - by baggins - 12-17-2018, 04:45 AM
RE: Telegram Push notifications - by Robbie Ferguson - 12-17-2018, 11:01 AM
RE: Telegram Push notifications - by Robbie Ferguson - 12-17-2018, 11:12 AM
RE: Telegram Push notifications - by baggins - 12-17-2018, 12:43 PM
RE: Telegram Push notifications - by Robbie Ferguson - 12-17-2018, 12:57 PM
 
Forum Jump:

Users browsing this thread: 2 Guest(s)