I just changed from windows NT to XP and I am no longer able
to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Hi ALL,
Can anyone help me out.
I have unix file, I need to delete the contents of the file. Can any one let me know the command to do this.
The file has to be there, but the contents should be deleted.
thanks
Manas (6 Replies)
Hi all,
I have searched and found various threads about removing spaces from a field within a text file. Unfortunately, I have not found exactly what I'm looking for, nor am I adept enough to modify what I've found into what I need.
I use the following command to remove the first line... (3 Replies)
unix script must do the fiollowing
open a file containing comma delimited records
> each record contains 10 fields
> removes the 2nd field and use that same field containing fields 2 to 10
the original record after fprocessing should containing fields 1 and 3
a new erecord must be... (10 Replies)
Hi,
I have a bash script that currently holds some data. I am trying to write all the contents to a file called temp.txt.
I am using
echo ${array} > temp.txt
The problem that I am experiencing is that the elements are being written horizontally in the file. I want them written... (5 Replies)
Hi,
I'm attempting to write the entire contents of a file to a specific .csv cell. So far have only a nawk one liner that will write a value into a specific .csv cell. Trying to use man page but can't seem to get any farther. Any help would be appreciated. nawk -v r=2 -v c=3 -v val=5 -F,... (7 Replies)
Hi,
I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility?
Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies
LEARN ABOUT FREEBSD
mesg
MESG(1) BSD General Commands Manual MESG(1)NAME
mesg -- display (do not display) messages from other users
SYNOPSIS
mesg [n | y]
DESCRIPTION
The mesg utility is invoked by a user to control write access others have to a terminal device. Write access is allowed by default, and pro-
grams such as talk(1) and write(1) may display messages on the terminal.
The first terminal device in the sequence of devices associated with standard input, standard output and standard error is affected.
The following options are available:
n Disallow messages.
y Permit messages to be displayed.
If no arguments are given, mesg displays the present message status to the standard output.
EXIT STATUS
The mesg utility exits with one of the following values:
0 Messages are allowed.
1 Messages are not allowed.
>1 An error has occurred.
EXAMPLES
Disallow messages from other users to the current terminal:
mesg n
Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal):
mesg y </dev/ttyp1
COMPATIBILITY
Previous versions of the mesg utility wrote the message status to the standard error output and affected the terminal attached to standard
error without first trying the standard input or output devices.
SEE ALSO biff(1), talk(1), wall(1), write(1)STANDARDS
The mesg utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A mesg command appeared in Version 1 AT&T UNIX.
BSD May 5, 2002 BSD