09-29-2008
need to fetch the ip address pertaining to the modified file
hi all
i need to find the ip address related to the modified files ... since the user id for all is the same in the server i am operating with, making file monitoring difficult....
if a file is midified then the ip address of the person who does the change should be logged in.... is there any way of doing it ... ?
any help?
9 More Discussions You Might Find Interesting
1. Programming
It sure sounds like a simple request....
I need some C code that will enable me to fetch the IP address of the tty attached to the current process.
In short:
char *myIPAddress(void)
{
// somebody help me fill in this part!!
}
-BL:confused: (4 Replies)
Discussion started by: brianleahy
4 Replies
2. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies
3. UNIX and Linux Applications
A log file contains details for last one year .This file contains log for all dates . The log file for a particular day starts with a particular string and ends with the same string .
We need to make a new file out of this existing file containing data after a particular date. (2 Replies)
Discussion started by: chaitanyassk
2 Replies
4. Shell Programming and Scripting
Hi guys,
Please help me out in this problem. I have two files
FILE1
abc-23 : 4529675
cde-42 : 9824532
dge-91 : 1245367
gre-45 : 9824532
fgr-76 : 4529675
FILE2
4529675 : Gal Glu house-2-be
9824532 : cat mouse
1245367 : sirf surf-2-beta
where FILE2 is a static file with fixed... (5 Replies)
Discussion started by: smriti_shridhar
5 Replies
5. Shell Programming and Scripting
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies
6. Shell Programming and Scripting
Hi Guys,
I have a file with around 1000 strings and i need to fetch the group to which each string belongs to from another file. Example is seen below.
File 1:
A
B
D
File 2:
START
A
B
C
END
START
M (5 Replies)
Discussion started by: jayadanabalan
5 Replies
7. Shell Programming and Scripting
Hello All,
I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common
DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log
STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log
... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
8. Shell Programming and Scripting
Hi,
I have a file like...
$cat file1
+++++++++++++++++++ client1 +++++++++++++++++++++++++++++
col1 col2 col3
------ ----- -----
(0 rows affected)
=========================================================
+++++++++++++++++++ client1 +++++++++++++++++++++++++++++
col1 col2 col3... (6 Replies)
Discussion started by: sam05121988
6 Replies
9. Shell Programming and Scripting
Hi,
I am new to scripting. I have a log file and need to fetch specific logs and copy to another file.
A copy of the log is like this:
===============================================================
= JOB : server123#jobs1.jobstream1
= USER : andyc
= Tue 08/01/17... (3 Replies)
Discussion started by: Prngp
3 Replies
TALK(1) BSD General Commands Manual TALK(1)
NAME
talk -- talk to another user
SYNOPSIS
talk person [ttyname]
DESCRIPTION
The talk utility is a visual communication program which copies lines from your terminal to that of another user.
Options available:
person If you wish to talk to someone on your own machine, then person is just the person's login name. If you wish to talk to a user on
another host, then person is of the form 'user@host' or 'host!user' or 'host:user'.
ttyname If you wish to talk to a user who is logged in more than once, the ttyname argument may be used to indicate the appropriate terminal
name, where ttyname is of the form 'ttyXX'.
When first called, talk sends the message
Message from TalkDaemon@his_machine...
talk: connection requested by your_name@your_machine.
talk: respond with: talk your_name@your_machine
to the user you wish to talk to. At this point, the recipient of the message should reply by typing
talk your_name@your_machine
It does not matter from which machine the recipient replies, as long as his login-name is the same. Once communication is established, the
two parties may type simultaneously, with their output appearing in separate windows. Typing control-L '^L' will cause the screen to be
reprinted. Typing control-D '^D' will clear both parts of your screen to be cleared, while the control-D character will be sent to the
remote side (and just displayed by this talk client). Your erase, kill, and word kill characters will behave normally. To exit, just type
your interrupt character; talk then moves the cursor to the bottom of the screen and restores the terminal to its previous state.
Permission to talk may be denied or granted by use of the mesg(1) command. At the outset talking is allowed.
CONFIGURATION
The talk utility relies on the talkd system daemon. See talkd(8) for information about enabling talkd.
FILES
/etc/hosts to find the recipient's machine
/var/run/utmpx to find the recipient's tty
SEE ALSO
mail(1), mesg(1), wall(1), who(1), write(1), talkd(8)
HISTORY
The talk command appeared in 4.2BSD.
In FreeBSD 5.3, the default behaviour of talk was changed to treat local-to-local talk requests as originating and terminating at localhost.
Before this change, it was required that the hostname (as per gethostname(3)) resolved to a valid IPv4 address (via gethostbyname(3)), making
talk unsuitable for use in configurations where talkd(8) was bound to the loopback interface (normally for security reasons).
BUGS
The version of talk released with 4.3BSD uses a protocol that is incompatible with the protocol used in the version released with 4.2BSD.
Multibyte characters are not recognized.
BSD
August 21, 2008 BSD