Re: chemical mime (pdb/RasMol)

Cornelius Krasel (krasel@alf.biochem.mpg.de)
Tue, 21 Feb 1995 21:22:33 +0100 (GMT)

> 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`

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

Sorry for the last paragraph, I was taken away :-)

--Cornelius.

-- 
/* Cornelius Krasel, Abt. Lohse, Genzentrum, D-82152 Martinsried, Germany  */
/* email: krasel@alf.biochem.mpg.de                 fax: +49 89 8578 3795  */
/* "Science is the game you play with God to find out what His rules are." */