diff options
author | Teddy Wing | 2017-04-13 22:12:13 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-13 22:12:13 +0200 |
commit | e744717160266550bd0f66722f0ee5de2781b3b7 (patch) | |
tree | 4013350604f98e4c77110d44433c490845ecdabe | |
parent | e203eb5bf8e8f0fe6b89612e9b5dd35a22603352 (diff) | |
download | HearURL-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
-rw-r--r-- | open_url.sh | 5 |
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 |