vi/emacs: Loging shell command and output
Hi folks,
What is the best way to log shell command and their console output?
I can use !! in vi and Control-U Meta-! in emacs to record shell output
but they do not record shell prompt nor shell command itself.
I know it is obvious to most of you but I am ignorant. If I can do
this, my maintenance log shall be very good. I do not want to do gpm
cut-&-paste any more.
My choice of editors are vim, mcedit, emacs,... (in order)
----- something I want ---
admin@mickey:/mnt$ ls -la
total 8
drwxr-xr-x 8 root root 1024 Feb 19 03:44 .
drwxr-xr-x 19 root root 1024 Feb 19 03:36 ..
drwxr-xr-x 2 root root 1024 Feb 18 23:59 goofy
lrwxrwxrwx 1 root root 1 Feb 19 03:44 hda1 -> .
drwxr-xr-x 2 root root 1024 Feb 19 03:21 hda11
drwxr-xr-x 2 root root 1024 Feb 19 03:21 hda12
drwxr-xr-x 2 root root 1024 Feb 19 03:21 hda13
drwxr-xr-x 2 root root 1024 Feb 18 21:57 hda2
drwxr-xr-x 2 root root 1024 Feb 19 03:21 hda3
---- made by gpm cut-and-paste -----
TIA.
Osamu
--
+ Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D +
+ Fingerprint: 814E BD64 3288 40E7 E88E 3D92 C3F8 EA94 D5DE 453D +
+ http://www.aokiconsulting.com/pc/ Cupertino, CA USA +
Reply to: