Sponsored Content
Full Discussion: Trace connections
Top Forums UNIX for Advanced & Expert Users Trace connections Post 15299 by jraitsev on Tuesday 12th of February 2002 05:51:09 PM
Old 02-12-2002
Thank you very much for your reply.

I was thinking about doing exactly what you suggested, but was just wondering if there is an easier way to go about it.

There has to be.

If not - let's write it.

Seriously there are a lot of very smart people on this board, lets make it happen

What do you think?

IF ANYONE ELSE HAS TO OFFER ANOTHER SOLUTION, PLEASE SPEAK UP
 

10 More Discussions You Might Find Interesting

1. IP Networking

trace route ip

hi everybody , i have a solaris 5.6 box and i want to trace the route on an ip i treid traceroute but soalris 5.6 does not support it ... is there a command that can be used equivelent to traceroute ? thanks for your help (2 Replies)
Discussion started by: ppass
2 Replies

2. Shell Programming and Scripting

Function Trace

Does anyone know if there is a util out there to run through a shell script and be able to trace the function call tree. I have inherited some code and the original author was ****mad**** keen on functions - even ones called only once! If anyone knows of anything I would appreciate it - web... (3 Replies)
Discussion started by: ajcannon
3 Replies

3. UNIX for Dummies Questions & Answers

Trace DHCP - Help!

Can someone help me with commands to trace DHCP on an HP_UX box? Thanks! (0 Replies)
Discussion started by: nuGuy
0 Replies

4. HP-UX

how to trace the logs

Hi, Last day, In one of our unix boxes there was an issue wherein few of the directory structures were missing / got deleted. Is there any way by which we can find how it happened, I mean by going through syslog / which user had run what command? Thanks for your help (3 Replies)
Discussion started by: vivek_damodaran
3 Replies

5. HP-UX

How to trace a user

on HP-Unix how can i trace user for example "xxx999" ? (4 Replies)
Discussion started by: salhoub
4 Replies

6. Shell Programming and Scripting

how to supress the trace

Hi I am working in ksh and getting the trace after trying to remove the file which in some cases does not exist: $ my_script loadfirm.dta.master: No such file or directory The code inside the script which produces this trace is the following: ] || rm ${FILE}.master >> /dev/null for... (3 Replies)
Discussion started by: aoussenko
3 Replies

7. Solaris

Log Trace

Hi I would like to display only error messages from my log files while monotring application on my solaris box using tail command. Is there other way we can monitor please let me know? In general # tail -f "xyz.log' ---> this will display current activity of the logs, instead i would like... (4 Replies)
Discussion started by: gkrishnag
4 Replies

8. UNIX for Dummies Questions & Answers

Help with trace file

Hi, I am an oracle DBA pretty new to unix. We had one of the filesystems full and a colleague cleared some stuffs to create more space. I just checked now and found there is now more space available. How do i find exactly what he cleared? We have oracle database installed and its a RAC... (4 Replies)
Discussion started by: dollypee
4 Replies

9. Shell Programming and Scripting

Stack Trace

Hi All Thought it would be kind of fun to implement a stack trace for a shell script that calls functions within a sub shell. This is for bash under Linux and probably not portable - #! /bin/bash error_exit() { echo "=======================" echo $1 echo... (4 Replies)
Discussion started by: steadyonabix
4 Replies

10. AIX

Trace su to root

Hi, is it possible to trace everything about user that changes from its own user to root user, failed and successful attempts (I would need user and IP address of user that was trying to do that)? I tried adding auth.notice and auth.info in syslog.conf but it only tracks user withoud IP... (6 Replies)
Discussion started by: sprehodec
6 Replies
WRITE(1)						      General Commands Manual							  WRITE(1)

NAME
write - write to another user SYNOPSIS
write [-ctynsprfSv] [ user [ tty ] ] ojot [-ltynsprfSv] [ user [ tty ] ] tel [-clynsprfSv] user [ tty ] [message...] DESCRIPTION
Note: This is "Orville write", an enhanced version of the standard Unix write program. Write copies lines from your terminal to that of another user. When first called, it sends the message: Message from your-logname your-tty ... The recipient of the message should write back at this point. Communication continues until an end of file is read from the terminal or an interrupt is sent. At that point, write writes "EOF (your-logname)" on the other terminal and exits. The following protocol is strongly suggested for using write: when you first write to another user, wait for him or her to write back before starting to type your message. Each party should end each message with a distinctive signal (o for ``over'' is conventional), indi- cating that the other may reply; oo for ``over and out'' is suggested when conversation is to be terminated. Avoid typing when it is the other person's turn, as your text will get all garbled with theirs. Anyway, it's rude. The ojot command is a variation of write which normally sends each character to the other user as you type it instead of waiting for you to finish a line before sending anything as write does. The tel command sends one line ``telegrams'' and then immediately disconnects. The message may be given on the command lines (in which case it is usually best to quote it). If you don't put a message on the command line, you will be prompted for it. This is usually the preferable way to invoke tel. All three commands are actually the same program, and share much of the same behavior. Permission to write may be denied or granted by use of the mesg(1) command. Your write permissions upon login are installation dependent. If you write a person who has permissions on, but is currently writing someone else, you will be warned of the fact and be given a chance to cancel your write request before interupting the other conversation. If you write a person who is running a command under amin(1) you will be warned similarly. You can always send messages to people who are currently writing to you, even if there message permissions are off. If you have sent a person a tel message, then that person can write or telegram to you for the next 4 minutes, even if your message permissions are off. This means that you won't be sitting around wondering why someone won't reply, just because you've forgotten to turn your permissions on. It also means that if you don't want someone to be able to talk to you, then you shouldn't talk to them. Root may write anyone. If you invoke the write or ojot command with no user name, they will write to whatever user is currently writing you. If no one is writing you, an error message is printed. If you invoke the write, ojot, or tel command with the user name '.', they will write again to whoever you wrote to last. If you haven't written to anyone in this login session, an error message is printed. This is especially useful when you are exchanging a series of mes- sages back and forth with tel. If you want to write to a user who is logged in more than once, the tty argument may be used to indicate the appropriate terminal. If the tty argument is not given, the terminal from which you are being written will be written to, if there is one. If not, one of the lines you have write permission to will be chosen. If the tty argument is given, the user name can be given as "-", in which case it will write to whomever is on that tty, if anyone is. On some systems there may be users designated as ``helpers''. If your system has helpers, then doing ``write help'' will write to some helper who is not busy. If more than one helper is available, one is selected at random to distribute the workload. Helpers designate themselves with the mesg(1) command. They are considered busy if they are writing someone else, or if they are running a command under the amin(1) program. If the character ! , | , or & is found at the beginning of a line, write calls the shell to execute the rest of the line as a unix command. If the command began with a ! the output of the command will be sent only to your terminal. If it began with a |, output will be sent only to the other person's terminal. If it began with a & each of you will recieve a copy of the output. Note that write expands all strange control characters before sending them to the other person's terminal, but does not do so for characters echoed back to your terminal. Write provides several command line options. Actually, the only difference between write, ojot, and tel is what default values they have for these options: -c Send each character as it is typed. Actually, it will not begin doing so until after the other party has replied. Also, if you type a line starting with a ")" then the rest of the current line will be held until you hit return and the sent (minus the ")"). When this option used, typing a control-R will reprint the text of the line you are currently typing, and control-W will erase the last word you typed, even if your unix system doesn't usually support these. In the ojot command this is the default. -l Send no characters until a full line has been entered. In the write command this is the default. -n During the duration of this conversation, temporarily turn off your message permissions, so as not to allow people other than the person being writen to write you. -y During the duration of this conversation, temporarily turn on your message permissions, allowing other people to write you after warning them that you are writing someone else. -p Postpone the receipt of telegrams during the duration of the conversation. All telegram received during the conversation will be saved in your .lastmesg file, and will be displayed when you are finished. The huh(1) command can be used in a shell escape to check saved messages without leaving write. -s During the duration of this conversation, leave your write permissions unchanged. This normally the default. -r This causes write to prompt for the root passwd. If it is given correctly, you will be able to write anyone, no matter how his mes- sage permissions are set, amd you can override his preference for write or tel. -f Disallow piping input through write and disable the '&' and '|' shell escapes. This is mostly meant to be used on 'options' com- mands in the orville.conf file. It has been mostly obsoleted by the 'pipes' configuration command. -t Sends a one line message (called a telegram) and then disconnects immediately. The text of the message may be given on the command line, or, if it isn't, you will be prompted for it. Though write will attempt to blank out messages given on the command line so they cannot be seen by users running w(1) or ps(1), this will not always work, so secret messages should not be placed on the com- mand line. This is the default in the tel command. -S Normally if you send a telegram to someone who has indicated a preference for writes, you get asked if you want to switch to writ- ing, and vice versa. The -S flag suppresses this question, and just makes it quietly fail (unless you are root, in which case it quietly succeeds). -v print the version number. The options selected by the writer may in some cases be overridden by the recipient. You can set your preferences for writes versus tele- grams, and for line mode versus character mode with the mesg(1) command. If the recipient has set write/telegram preferences, you will be asked if you want to use the other if you write him the wrong way. If you invoke Write with a -S flag, then you will not be asked if you want to switch. Only root can actually override the recipient's preferences. For regular users, if you decline to switch, the command fails. If the recipient has set character/line mode preferences, a message will be printed and you will be forced into his or her prefered mode. CONFIGURATION
The orville.conf file contains configuration information for Orville write and the associated utilities. Lines starting with '#' and blank lines are ignored. Other lines contain the commands listed below: answertel <seconds> Normally you can send telegrams to a person for four minutes (240 seconds) after they sent you a telegram, even if their message permissions are off. This command can be used to set size of that window to other values. disconnect [y|n] If disconnect is enabled the 'mesg d' and 'mesg N' commands can be used by the writee to disconnect everyone currently writing them. (See mesg(1)). It is enabled by default. exceptions [y|n] If exceptions are enabled the 'mesg ye' and 'mesg ne' commandsa can be used to limit which particular users can and cannot write you (See mesg(1)). It is enabled by default. fromhost [y|n] If this flag is set, then message announcement banners will include the hostname of the sender's machine (and the reciever's since write does not allow interhost communications). It is disabled by default. helperlist <path> If this flag is set, then only people whose logins appear in the given file may be helpers. Otherwise, anyone may be. It is disabled by default. helpername <name> By default you get help by doing 'write help'. If you want to use some keyword other than 'help', use this command to define it. helpers [y|n] Can people designate themselves to be helpers, and should 'write help' work? By default, no. log <path> What file should logging be done in? If not defined, or if it is defined and the file does not exist, then no logging will be done. loglevel <num> How much logging should be done? Level 0 means none. Level 1 means only log help requests (with information about whether they succeeded or not). Level 2 means logging a one-line description of each write connection made. Of course, no logging is done if 'log' is not defined or does not exist. No content of any write conversation is ever logged. The default is 1. nohelp <path> If someone does 'write help', but no helpers are found, this file is displayed. Normally it has information on other places to get help. If not defined, nothing is printed. pipes [y|n] If turned off, this disallows piping data through write, so you can't do escapes. This may be necessary if many users are using write to annoy other users by sending large chunks of data. It defaults on. novicehelp <path> If the environment variable NOVICE is defined, then print the contents of this file before running write. If not defined, noth- ing is printed. options <command-name> -<flags>... Set default options for different links to the write program. For example, if you have the line 'options jot -c' and you make a link to the write program named 'jot', then jot will default to character mode instead of line mode. If command-name is '*', then all links (even ones created by users) get that option. wrthist <path> This is the full pathname of the 'wrthist' file which maintains information about user's recent messages. It is used to limit telegram flooding attacks, and allow replies to telegrams during the four minute window. By default it is in the same directory as the wrttmp <path> This is the full pathname of the 'wrttmp' file which maintains information about user's current state. By default it is in the same directory as the AUTHOR
Jan Wolter SEE ALSO
mail(1), mesg(1), who(1), huh(1), finger(1), amin(1), helpers(1). 7th Edition Jan 20, 2000 WRITE(1)
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy