[2796] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Unidentified subject!

daemon@ATHENA.MIT.EDU (Wierdl Mate)
Tue Nov 5 13:55:31 1996

To: Wes Parker <wesp@ennui.ioa.com>
cc: redhat-list@redhat.com
In-reply-to: Your message of "Tue, 05 Nov 1996 12:06:32 EST."
             <199611051706.MAA01850@ennui.ioa.com> 
Date: Tue, 05 Nov 1996 13:43:10 -0600
From: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

> I've been running exmh on a Slackware Linux distribution for some time now.  
> Last week, I upgraded my system to RedHat 4.0, running kernel 2.0.23.  I am 
> also using the MetroX X server.  The RedHat distribution included exmh-1.6.7, 
> and I had been running 1.6.9, so instead of installing the rpm I d/l a copy 
> from Bruce's site and installed it.
> 
> I use xdm and fvwm.  I have a button set up to bring up exmh.  When I try to 
> access exmh via the button, exmh tries to start up, and seems to hang after I 
> see "Starting: /usr/local/bin/exmh-bg" on the status line.  If I click on a 
> folder, I get an error box with the message:
> 
> couldn't execute "scan": no such file or directory
>     while executing
> "open "|$mhProfile(scan-proc) +$F last:$ftoc(scanSize)
> 			    -width $ftoc(scanWidth)""
>     invoked from within
> "set input  [open "|$mhProfile(scan-proc) +$F last:$ftoc(scanSize)
> (other stuff cut for brevity), 
> 
> and when I dismiss that dialogue box, I see "tkerror: couldn't execute "scan": 
> no suc ..." on the status line.
> 
> BUT...
> 
> I can immediately go to an xterm session, execute exmh, and the program runs 
> with no problems.
> 
> I'm sure that this is something stupid, like a path screwed up somewhere, but 
> I can't seem to find it.  The .profile and .bashrc that load with the shell 
> don't set any paths.  I do that in .xsession.  I'm not an X-god, so there's 
> probably something I'm missing, but I don't have a clue where to look.  Any 
> ideas?
> 
> Thanks!

Hopefully, we are not going to get the pleasant mail bounce this time!

The point is that scan (and probably the other MH executables are not
in your path when you run xdm. The path for the MH executables is set
in /etc/profile and /etc/csh.cshrc, so if you source those in
.xession, you will be fine. 
So either just do 

PATH=/usr/bin/mh:$PATH
export PATH

in .xsession

or source the shell init files corresponding to your shell in
.xsession. Here is my .xsession (my shell is bash):

#!/bin/bash



# systemwide config

  if [ -f /etc/profile ]; then
    source /etc/profile
  fi


  if [ -f /etc/bashrc ]; then
    source /etc/bashrc
  fi


# my profile

  if [ -f ~/.bash_profile ]; then
    source ~/.bash_profile
  fi

# keymaps
  if [ -f ~/.Xmodmap ]; then
     xmodmap ~/.Xmodmap
  fi

# pland daemon for plan

  pland -k
	 
rxvt &

xhost moni
xhost zebra

if [ ! -z $(type -path oclock) ]; then
	oclock -geometry +0+0 &
else
	xclock -geometry +0+0 &
fi

if [ ! -z $(type -path fvwm) ]; then
	exec fvwm
else
	exec twm
fi



--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post