url version 0.3 Copyright (c) 1995-2001 by Karl J. Runge url: Script to make browser "mozilla" go to a URL on the command line, or the URL in the current X-selection (or cutbuffer). Usage: url [] Options: -D, -d Debug mode. Launch command not run. -v Verbose mode. commands are echoed to the screen. -h Prepend "http://" to -F Prepend "ftp://" to -g Prepend "gopher://" to -f Prepend "file:" to -H Assume input is HTML, not a URL. -j Assume input contains Java applet and run appletviewer on it appletviewer '%s' 2>&1 & -M use mozilla -p Assume input is a post request (currently broken?) -n No new-window -help This help (or -h with no other args) Notes: If is not given, it uses the string in the current X-selection. If is "-" 1st line of stdin is used. Dependencies: Needed: To retrieve X selection: "selection.tcl" A browser: "mozilla" A go to URL command: "netscape_remote -noraise -remote 'openURL(%s,new-window)'" Not absolutely needed, but useful: To display error messages: "tkquery -warp -no -b Dismiss::Dismiss_click" To launch POST requests: "post_wrapper '%s'" Examples: url url http://www.lycos.com