[EMAIL PROTECTED] wrote:
Hi,
I did th3 follwing: With a program, which generates random numbers in
different formats, I created a file, which consists of _one_ line of
2097152 characters ("0"-"9","A"-"F").
To split the line into lines of 72 characters each, I started vim and
let it read the file.
I postioned the cursor at position 0 and entered the following in
normal mode:
qq72<right>i<return><esc>0q
Then I did a
[EMAIL PROTECTED]
After only 10 or 15 (guessed) executions of the macro the system
freezes while constantly swapping (?) and became unuseable and did no
longer respond.
Even the mouse pointer was nearly unmoveable...
After heavily and constantly trying I managed to kill the X-session
and to 'killall -9 vim' from the console to get back my computer.
I am using an up-to-date version of Gentoo and vim (not gvim). My
system runs an AMD 64 X2 3800+ CPU and uses a Seagate 200GB harddisk
(dma enabled). It needs a lot of load to bring the system to its
knees.
May be it was "wrong" what I did in the sense of "there are better
UNIX tools to reformat such a file" or "better commands in vim to
accomplish this",...
...but in a critical moment it may be that I would have lost my work
(other open applikations) due to the need of killing X.
Keep editing! ;)
mcc
Try Ctrl-Alt-F2 to get to a text console without killing X. Then enter a login
name and password.
On Linux, you normally have six text consoles just waiting there for you to
log in, even while X is running. Ctrl-Alt-F1 (/dev/tty1) normally has the last
page of your boot sequence log, so you may (or may not, after all) want to
leave that one in peace. Ctrl-Alt-F2 to Ctrl-Alt-F6 are the other five
(/dev/tty2 to /dev/tty6). /dev/tty7 is what the X server video output goes to
(and, IIUC, where its keyboard input comes from), so you hit Ctrl-Alt-F7 to go
back to X after having used a text terminal. (The X server display input is
normally called :0 ).
There are more possible terminals (/dev/tty8 to /dev/tty12, maybe), but since
there is no getty (or, more often, mingetty) program listening there, you
can't log into them. You _can_, if you wish, redirect a program's sysout
and/or syserr to them, and look at the latest page of output by means of the
appropriate Ctrl-Alt-Fn keychord. For instance, /dev/tty10 (Ctrl-Alt-F10) is
usually the syslog listing, at least in the Linux distros that I use.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
164. You got out to buy software, instead of going out for a beer.