[Alpine-info] URL "pushing"
Andraž 'ruskie' Levstik
ruskie at codemages.net
Tue Dec 7 22:46:57 PST 2010
:2010-12-07T23:44:Dan Mahoney, System Admin:
> I would like to have a nice, easy way for me to open urls, especially
> obnoxiously long ones that cannot be cut-and pasted because they scroll off
> the alpine pre-viewer confirmation window.
>
> The minimal answer: Write a url-shortener, like all the ones twitter has made
> so popular, and have the "viewer" app simply display the url on screen.
What I tend to use is:
links.sh:
#!/bin/bash
echo "$@"
read -n1
So if I run the URL it will print it fully on the terminal then I can
copy paste it or do whatever I want with it without worrying about line
breaks and the like.
> However, I'd like to have some kind of auto-launch method for this. A daemon
> which could live on my local system, perhaps some kind of active bookmark.
> I've also considered having alpine spawn a script which would ssh back into my
> mac (which is static and public) and run firefox with a command line arg, but
> that doesn't help once I go home from work.
Hmm how about having a web page with links. Maybe password protected on
some host and then any URL you run would get added to it. Either
generating static HTML(which should be dead easy) or generating it
dynamically from a list of URLs using some PHP or something like that.
Hmm that just gave me an idea that I'll make for myself :)
> Has anyone else come up with a decent solution for this, a simple cross-system
> rpc-type demon?
>
Could probably be done. Though as I'm generally on systems that run bash
I'd probably make anything like that using bash.
> I would love to see some sort of standard emerge for this, with some kind of
> useful ANSI escape sequence that was rfc-defined, but that might just be
> dreaming.
Most likely dreaming.
--
Andraž 'ruskie' Levstik
Source Mage GNU/Linux Games/Xorg grimoire guru
Re-Alpine Coordinator http://sourceforge.net/projects/re-alpine/
Geek/Hacker/Tinker
Show them the ropes and soon they've used that rope to build a bridge to their future.
More information about the Alpine-info
mailing list