My favorites
▼
|
Sign in
itivo
Download shows from your TiVo to your Mac and iPhone
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
198
attachment: 0001-Change-parsing-method-to-avoid-using-the-colrm-utili.patch
(1.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 2b0a73684ebe7108cde842c2a8d25ac993599fe7 Mon Sep 17 00:00:00 2001
From: Drew Moseley <drew@moseleynet.net>
Date: Thu, 21 Feb 2013 11:45:04 -0500
Subject: [PATCH] Change parsing method to avoid using the colrm utility
Signed-off-by: Drew Moseley <drew@moseleynet.net>
---
findLocalTivoIPAddress.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/findLocalTivoIPAddress.sh b/findLocalTivoIPAddress.sh
index 814216e..8130e0d 100644
--- a/findLocalTivoIPAddress.sh
+++ b/findLocalTivoIPAddress.sh
@@ -3,7 +3,7 @@
if [ -L /usr/bin/mDNS -o ! -e /usr/bin/mDNS ]; then
# If it is a symlink or it doesn't exist, defer to the dns-sd command
- HNAME=$(dns-sd -L "$1" _tivo-videos._tcp local | grep 'can be reached.*:443' | colrm 1 78 | awk -F: '{print $1}' | sed 's@\.$@@' | sort | uniq | head -1 &
+ HNAME=$(dns-sd -L "$1" _tivo-videos._tcp local | grep 'can be reached.*:443' | tr ' ' '\n' | grep ':443' | awk -F: '{print $1}' | sed 's@\.$@@' | sort | uniq | head -1 &
sleep 2
killall dns-sd)
ping -c 1 ${HNAME} | head -1 | cut -d \( -f 2 | cut -d \) -f 1
--
1.8.1.1
Powered by
Google Project Hosting