www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/21/10:59:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 21 Feb 2003 10:09:23 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ajay Simha <asimha AT cisco DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cygstart, mutt or mailcap?
In-Reply-To: <20030221145216.GL1736@cisco.com>
Message-ID: <Pine.GSO.4.44.0302211002500.16682-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 21 Feb 2003, Ajay Simha wrote:

> On Fri Feb 21 09:33:58 2003, Igor Pechtchanski wrote:
> > On Fri, 21 Feb 2003, Ajay Simha wrote:
> >
> > > Hi,
> > >
> > > This is what my .mailcap looks like:
> > >
> > > ===========================================
> > > text/html; lynx -dump %s; copiousoutput; nametemplate=3D%s.html
> > > Application/MSWORD;      cygstart %s; copiousoutput;
> > > Application/VND.MS-EXCEL; cygstart %s; copiousoutput;
> > > Application/PDF; cygstart %s; copiousoutput;
> > > Application/vnd.ms-powerpoint; cygstart %s; copiousoutput;
> > > Application/MSEXCEL; cygstart %s; copiousoutput;
> > > Application/octet-stream; cygstart %s; copiousoutput;
> > > ===========================================
> > >
> > > I'm using mutt 1.4i. When I try to view a word doc it lauches fine but
> > > in the middle of doing other things like reading email or doing
> > > something else my word doc seems to get corrupted.
> > >
> > > However I don't see this problem if I save the file and *then* run
> > > cygstart or directly open it in word.
> > >
> > > BTW here is where the tmp file is created:
> > >
> > > [asimha AT asimha-w2k02 ~]$ ls -lt /tmp
> > > ls: /tmp/mutt-asimha-w2k02-1736-194: No such file or directory
> > > ls: /tmp/mutt-asimha-w2k02-1736-33: No such file or directory
> > > total 4550
> > > -rw-------    1 asimha   None       483328 Feb 21 02:41 Dell-lab-summary.001736.doc
> > > -rwxrwxrwx    1 asimha   ????????      162 Feb 21 02:41 ~$ll-lab-summary.001736.doc
> > > drwxrwxrwx+  12 asimha   None         8192 Feb 21 02:22 aspell-0.50.3
> > > -rwxrwxrwx    1 Administ None      3962880 Feb 21 02:18 aspell-0.50.3.tar
> > > -rw-rw-rw-    1 asimha   None          187 Feb 21 01:47 lpr.log
> > > -rw-rw-rw-    1 asimha   None       201918 Feb 21 00:39 XWinrl.log
> > > [asimha AT asimha-w2k02 ~]$
> > >
> > > Any clues here?
> > >
> > > Thanks,
> > > -ajay
> >
> > Ajay,
> >
> > Two WAGs:
> > 1) Is your /tmp mount binary or text?  If text, try remounting as binary.
> > Also see if adding "binmode" to your $CYGWIN helps.
> > 2) This one's really wild, but I know Windews has this stupid dependence
> > on the name of the file.  Try using the nametemplate trick ("%s.doc", or
> > something), and see if it helps.
> >       Igor
>
> Hey thanks for the quick reply.
>
> Regarding 2) it *is* a .doc if not the default windows handler would not
> work for it.

Umm, yes, I'm slow today.  However, the '????????' in your ls output
indicates that your /etc/{passwd,group} aren't up to date.  See
<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.20> for
details.  Probably unrelated, but something to fix anyway.

> Regarding 1) :
> [asimha AT asimha-w2k02 /etc]$ mount
> D:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode)
> D:\cygwin\bin on /usr/bin type user (binmode)
> D:\cygwin\lib on /usr/lib type user (binmode)
> D:\cygwin on / type user (binmode)
> c: on /cygdrive/c type user (binmode,noumount)
> d: on /cygdrive/d type user (binmode,noumount)
> z: on /cygdrive/z type user (binmode,noumount)
> [asimha AT asimha-w2k02 /etc]$ df -k
> Filesystem           1k-blocks      Used Available Use% Mounted on
> D:\cygwin\usr\X11R6\lib\X11\fonts
>                        5496088   2290917   3205171  42% /usr/X11R6/lib/X11/fonts
> D:\cygwin\bin          5496088   2290917   3205171  42% /usr/bin
> D:\cygwin\lib          5496088   2290917   3205171  42% /usr/lib
> D:\cygwin              5496088   2290917   3205171  42% /
> c:                     6289888   2666732   3623156  43% /cygdrive/c
> d:                     5496088   2290917   3205171  42% /cygdrive/d
> z:                      555604    555604         0 100% /cygdrive/z

Looks fine (/tmp will be under the "/" mount).

> is there a way to mount d:\cygwin\tmp as it's own file system

Yes.  "man mount".

> or simply make cygwin use my desktop as tmp?

Ugh, you don't want to do that.  For one, anytime you run "configure"
you'd get a lot of directories on your desktop.  Unless you actually
*like* a cluttered desktop... ];->
You could mount your Windows profile's Temp directory as /tmp, though...
Make that one a user mount, though.

> Thanks,
> -ajay

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019