From e744717160266550bd0f66722f0ee5de2781b3b7 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 13 Apr 2017 22:12:13 +0200 Subject: 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 --- open_url.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 open_url.sh 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 -- cgit v1.2.3