#!/bin/tcsh -f #(ie run the tshell on this but don't read the .cshrc or .tcshrc) echo version = 1.01 of pmid 2006 Jan 12 # 2006 Jan 12, 1.01: sound suppression # 2004 Apr 8, 1.00: origin echo Direct the mozilla browser to a PubMed id, pmid if ($#argv == 0) then echo 'usage: pmid [pmid_number]' exit endif set pmid = $1 set url = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=$pmid" #set url = "http://www.ncbi.nlm.nih.gov/entrez/utils/lofref.fcgi?PrId=3051&uid=9030566&db=pubmed&url=http://www.jbc.org/cgi/pmidlookup?view=full&pmid=$pmid$" # mozilla -noraise -remote "openURL($url)" mozillaurlnew "$url" # sound towerclock > /dev/null topaper "$url"