aboutsummaryrefslogtreecommitdiffstats
path: root/open_url.sh
diff options
context:
space:
mode:
authorTeddy Wing2017-04-13 22:12:13 +0200
committerTeddy Wing2017-04-13 22:12:13 +0200
commite744717160266550bd0f66722f0ee5de2781b3b7 (patch)
tree4013350604f98e4c77110d44433c490845ecdabe /open_url.sh
parente203eb5bf8e8f0fe6b89612e9b5dd35a22603352 (diff)
downloadHearURL-e744717160266550bd0f66722f0ee5de2781b3b7.tar.bz2
Add open_url.sh
A script that can be installed on a remote machine and invoked with a URL argument that will be opened by Hearurl locally. For use with programs like the "openurl.pl" script for Irssi. The script would function using this SSH command: $ ssh -R 37705:localhost:34254 user@host
Diffstat (limited to 'open_url.sh')
-rw-r--r--open_url.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/open_url.sh b/open_url.sh
new file mode 100644
index 0000000..3bd6514
--- /dev/null
+++ b/open_url.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+# Opens a URL in the local SSH client machine's browser
+
+cat <(echo "$1") > /dev/tcp/localhost/37705