Re: chemical mime (pdb/RasMol)

Robin Stephenson (ubcgs7l@iona.cryst.bbk.ac.uk)
Tue, 21 Feb 1995 20:50:41 +0000

Cornelius and other tech-subscribers:

On Feb 21, 8:27pm, Cornelius Krasel wrote:
+ Subject: Re: chemical mime (pdb/RasMol)
| > I'm running on an SGI Indigo2 under IRIX 5.2. I have the
| > following line in my ~/.mailcap file:
| >
| > chemical/x-pdb; winterm -T RasMol -e rasmol %s
| >
| > This starts up a command window and a RasMol window as expected, but I
| > get the following error message in the command (and no molecule in thei
| > RasMol one):
| >
| > Error: File '/usr/tmp//MO1243136.pdb' not found!
| >
| > The problem appears to be the extra slash - the MO1243136.pdb bit is
| > Mozilla's scratch file of the pdb file and is variable.
|
| If the problem is the slash *and* the temporary files are always in
| /usr/tmp, this entry in your .mailcap file should provide an ugly fix:
|
| chemical/x-pdb; winterm -T RasMol -e rasmol /usr/tmp/`basename %s`

This does indeed remove the extra slash, but RasMol still can't find the file:
Error: File '/usr/tmp/MO1322824.pdb' not found!

|
| What's going on? I don't know, but it appears to be an environment problem.
| Does NetScape define environment variables where it puts its temporary
| files? Maybe these are hardcoded ... then you would have either to

I've used the menus within Netscape to set the cache directory
(Options|Preferences|Cache, Network, Images) to /usr/tmp. This directory fills
up with files like this:
-rw-r--r-- 1 ubcgs7l course 1349 Feb 21 20:38 /usr/tmp/cache132287
which, on inspection, turn out to be gifs contained within the pages. I guessed
that this was where Netscape would stash the retrieved pdb file.. this seems to
be confirmed by the original RasMol error:
Error: File '/usr/tmp//MO1243136.pdb' not found!
(The /usr/tmp wasn't in the .mailcap entry, and it's not in my environment):
eigg 114 8:49pm ~> setenv | grep '/usr/tmp'
INSIGHT_SAVE_ERROR=/usr/tmp/biosym_insight.crash_log

| recompile Netscape or Rasmol to get rid of the extra slash. (Uh, you
| can't recompile Netscape since it is semi-commercial ...)

8^) maybe someday..

|
+-- end of excerpt from Cornelius Krasel

Alan Mills gave me a (partial) fix - but you don't get the RasMol command
window (which I reckon is worth having):
chemical/x-pdb; rasmol %s

What I don't understand is why this should work, and not Cornelius' suggestion:
chemical/x-pdb; winterm -T RasMol -e rasmol /usr/tmp/`basename %s`

--
Robin Stephenson                                             ____/|
email mailto:ubcgs7l@cryst.bbk.ac.uk                         \ o.O|
WWW   http://www.cryst.bbk.ac.uk/~ubcgs7l/home.html           =(_)=
                                                                U
Subscribe Now