Your Ad Here

Minggu, 20 April 2014

Unix Tip: WATCH THOSE VENDORS

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

UNIX GURU UNIVERSE
UNIX HOT TIP

Unix Tip 3358 - April 20, 2014

http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


WATCH THOSE VENDORS

Need to monitor what a vendor
is doing when they access your
command line? Don't have access
to programs such as peek? Use
the unix command script.

Into the vendors .profile or
.login build a line that states
script <filename> i.e. script
vendorlog, you may place it in a
secure directory if you wish by
entering the full pathname of
the file.

Now when the vendor logs in, the
file will show you what commands
they entered. If you want to
monitor in real time, simply use
tail -f <filename> to see the
characters as they are typed.
The vendor will see an output of
script started, but it's your
machine, you make the rules
regarding access.

Remember that you normally enter
exit on your terminal window to
stop logging to a file. This
means if the vendor types exit,
the script command stops. Also,
running the script again with the
same file name will overwrite what
was previously logged unless you
use script -a. See man page for
additional information.


This tip generously supported by:
mike.hammernik@msg.ameritech.com


--------------------------------------------------------------------------
To Subscribe: http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe: http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today

==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU ADVISES THAT
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.

Unix Guru Universe - www.ugu.com - tips@ugu.com - Copyright 1994-2001
==========================================================================

Tidak ada komentar:

Posting Komentar

Your Ad Here
Free Automatic Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink Free Auto Backlink