On Mon, Mar 13, 2000 at 07:24:17PM -0500, John Joseph Morgan wrote:
> Greg Olszewski writes:
> Thanks Greg,
> > You might try M-x shell, but on my system at least, I get
> >
> > top: Unknown terminal "emacs" in $TERM.
>
> I want to use top after going to a shell with M-x shell, that is where I get the
>message
> bad data in /var/run/utmp(null)
> I don't think this is a problem with emacs, since top used to work this way.
> But my $TERM variable is set to dumb.
> John
Okay. If you are in M-x shell and set your TERM to dumb, top should work.
However in your first message, you said you were trying to run top through
M-x shell-command. There is a significant difference. M-x shell should work.
M-x shell-command shouldn't. For dealing with /var/run/utmp, I'd just type
(as root)
# > /var/run/utmp
Which truncates the file to empty. Should solve the bad data
problem.
The system will forget about everyone who is logged in, but it
shouldn't cause a problem. Once people log out and in again, everything
should be back to normal.
--
dronf!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs