From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] my web browsing technique From: "rob pike, esq." MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 26 Nov 2002 20:39:00 -0800 Topicbox-Message-UUID: 28ae3282-eacb-11e9-9e20-41e7f4b1d025 Kind of an old thread, but I like VNC OK and finally broke down and wrote this plumbing rule: # urls to opera on another machine type is text data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*' plumb to web plumb start ssh my-vnc-machine.com 'DISPLAY=:3' opera -newpage ''''$0'''' The quotes around DISPLAY=:3 are to get the assignment past the plumber; the quotes around $0 get its contents past ssh and into the destination machine without reevaluation by the shell. The plumb to web line lets me debug the pattern: just cat /mnt/plumb/web and click on a URL to see what the data matches. (Good trick in general.) Opera will pop the URL into a running instance of itself if possible (nice thinking, guys!) and the -newpage option means it will create a new Opera subwindow rather than overwriting an existing page. Someone sends you a list of URLS? Just right-click on each one in the list and - voila! - Opera will go fetch them all for you, each in a different window. This rule scratches the itch pretty well. There well may be a better pattern for the 'matches' line, but that's not the point. -rob