01-15-2020
Quote:
Originally Posted by
TestKing
I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt.
What are you actually planning to log in vi?
Every keystroke while in the editor?
Are you looking for a keystroke logging application?
If so, you might consider
logkeys:
Quote:
logkeys is a linux keylogger. It is no more advanced than other available linux keyloggers, notably lkl and uberkey, but is a bit newer, more up to date, it doesn't unreliably repeat keys and it shouldn't crash your X. All in all, it just seems to work. It relies on event interface of the Linux input subsystem. Once completely set, it logs all common character and function keys, while also being fully aware of Shift and AltGr key modifiers.
GitHub - kernc/logkeys: A GNU/Linux keylogger that works!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail -f for the monitoring. The logs was generate every hour so I need to quickly change my logs every time the new hour hits according... (2 Replies)
Discussion started by: kriezo
2 Replies
2. Shell Programming and Scripting
I would like to monitor a log file using a shell script and as soon as a line with a certain string in it appears I would like to run a program. I have been playing around with doing this using tail -f, but cannot get it to work. I found something similar here:... (1 Reply)
Discussion started by: danielsbrewer
1 Replies
3. Shell Programming and Scripting
hi All,
how to find a pattern in the log file & display the above and below line
for example in the log file, i have many lines, whenever i search for "Category" it should display the above line with only few parameter like i want only the location name & department name
Thu Jul 02 11:05:23... (2 Replies)
Discussion started by: rithick256
2 Replies
4. Shell Programming and Scripting
Hi Folks,
I need help in creating a script to monitor a continuously updating log for one particular error. If the the script finds the error it should send out an email.
Thanks for all ur help (2 Replies)
Discussion started by: a12ka4
2 Replies
5. Shell Programming and Scripting
Hi Friends,
I am trying to write a script which continiously monitor one specific error message from a log file. This script should continiously monitor the file for the error and send out the email when detect the error message. I tried the below command but fails. Please help me.
tail -f... (4 Replies)
Discussion started by: arumon
4 Replies
6. HP-UX
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Discussion started by: Shirishlnx
3 Replies
7. Shell Programming and Scripting
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (1 Reply)
Discussion started by: hishanms
1 Replies
8. Shell Programming and Scripting
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (7 Replies)
Discussion started by: hishanms
7 Replies
9. Shell Programming and Scripting
Hi,
Have written a script to monitor linux non standard log file based on line numbers, so each check store $otalinenum ..
then in next check after 10 minutes it compre the current_total_line_num > last_total_line_num then it will parse the log file from last_total_line_num to... (0 Replies)
Discussion started by: Shirishlnx
0 Replies
10. Shell Programming and Scripting
Hi,
I need to amend an existing ksh script so that it runs a process (stop weblogic) and in parallel needs to monitor a log file (startup.log) in the background for a certain string (e.g. unable to stop weblogic). If the string appears in the log i need to kill the stop weblogic process.
... (5 Replies)
Discussion started by: dholmaster
5 Replies
LEARN ABOUT DEBIAN
dosemu
DOSEMU(1) DOS Emulation DOSEMU(1)
NAME
dosemu, xdosemu - run DOS and DOS programs under Linux
SYNOPSIS
dosemu [ -dumb ] [ -quiet ] [ -input keystroke-string ] [ -s ] [ -install [ bootdir ] ] [ args ]
xdosemu [ -dumb ] [ -quiet ] [ -input keystroke-string ] [ -s ] [ -install [ bootdir ] ] [ args ]
DESCRIPTION
dosemu is the wrapper script for dosemu.bin (1) which invokes the Linux dos emulator, also known as DOSEMU. The wrapper also takes care of
(eventually) installing the private instance of DOSEMU in the user's $HOME, if this doesn't exist.
OPTIONS
args any number of options described in dosemu.bin (1), please refer to this man page for further details. However, take care to quote
and escape correctly so bash doesn't mess up arguments containing blanks and backslashes.
-dumb use `dumb' terminal mode. This will only work for DOS applications, which do plain text output to stdout, but has the advantage that
(A) the output of the DOS application stacks up in your xterm scroll buffer and (B) you can redirect it to a file such as
$ dosemu -dumb dir > listing
Note that DOSEMU command.com's commandline editor/history will also work here, however, editing is restricted to BACKSPACE'ing.
-quiet do not print startup comment and do not stop for prompting
-input Do simulated keystrokes as given by keystroke-string just after DOS has booted. This can be used to autolaunch applications, bypass
any needed boot menus or something similar. For details on the format of the string look at README.txt.
-s Invoke dosemu via sudo. This is necessary to get access to certain I/O ports and to get graphics on the Linux console. Please refer
to the documentation (INSTALL and README.txt) to see which files need to be adjusted before attempting this.
-install [ bootdir ]
launched as part of a systemwide installation, this option (re-)installs a DOS that is used in DOSEMU (this can be the DOSEMU dis-
tributed FreeDOS or any proprietary DOS, which is bootable via fatfs). bootdir is the base name of a directory. The symbolic link
~/.dosemu/drives/c will be changed to point to this directory. Re-installing is only rarely necessary, since in practise the sym-
bolic link(s) will automatically point to updated files.
--version
print version of dosemu and list of available options.
AUTHOR
DOSEMU (comprised of the files dosemu.bin and dosemu ) is based on version 0.4 of the original program written by Matthias Lautner (no cur-
rent address that I know of).
Robert Sanders <gt8134b@prism.gatech.edu> was maintaining and enhancing the incarnation of DOSEMU with which this man page was originally
distributed. During about 4 years James B. MacLean <macleajb@ednet.ns.ca> was the restless leader of the dosemu team, implementation of
DPMI (which made Windows-3.1, dos4gw, djgpp, e.t.c running) happened during his 'governement' and brought the project near to Beta-state.
Hans Lermen <lermen@fgan.de> took over and released the first 1.0 version. Now Bart Oldeman <bart@dosemu.org> is maintaining this funny
software.
FILES
$HOME/.dosemurc
per-user configuration file
/etc/dosemu/dosemu.conf
or (only if /etc/dosemu.users exists)
/etc/dosemu.conf
systemwide configuration file
$HOME/.dosemu/boot.log
default file for debug and log messages
$HOME/.dosemu/drive_c/
default directories of the local per user DOSEMU instance
/usr/bin
/usr/share/dosemu/
/usr/share/dosemu/dosemu-bin.tgz
/usr/share/dosemu/dosemu-freedos-bin.tgz
default systemwide installation, containing binaries and templates (The paths can be changed during creation of the systemwide
installation).
SEE ALSO
dosemu.bin(1)
Version 1.4.0.1 2008-03-27 DOSEMU(1)