08-09-2008
Send console message to all users and tty
Hi people,
i tried to search in the forum... but didnt found the answer...
Sometimes i need to send a console message to all users in all tty, like reboot or shutdown does...
But i cant find how to do that.
Someone know?
Thanks a lot
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused: I receive the following error message when I try to logon to my Solaris 2.6 system;
"No utmpx entry. You must exec "login" from lowest level "shell" "
What does it mean ? I can't logon to the system at the moment!
Any help appreciated.
Regards (3 Replies)
Discussion started by: boristhespider
3 Replies
2. UNIX for Dummies Questions & Answers
I run my nightly backup thru a crontab job. Is there any way to get the message to mount a new tape to the console? Currently it appears to go to an email. (1 Reply)
Discussion started by: aixhelp
1 Replies
3. Solaris
Dear Frnz
I have a solaris box with running 5.8
My default window manager is CDE.When i login as a normal user and try to open console it is vanishing quickly.
When i check the logs the message is
Wed Nov 21 19:27:03 2007 (/usr/dt/bin/dtexec) /usr/dt/bin/dtterm
/dev/console: Permission... (1 Reply)
Discussion started by: sriram.s
1 Replies
4. UNIX for Dummies Questions & Answers
How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted? (5 Replies)
Discussion started by: agasamapetilon
5 Replies
5. Shell Programming and Scripting
Hi all,
I have a requirement, where I need to do some calculations and based on the results I need to write a message to the user from a shell script.
Is it possible to `write' inside the script? Something like the below one..
#! /bin/ksh
write user12 << EOF
Hello World
<<EOF
For... (2 Replies)
Discussion started by: guruparan18
2 Replies
6. AIX
Hi,
What is the diference between these two ?
thanks
Vilius (3 Replies)
Discussion started by: vilius
3 Replies
7. AIX
I'm trying to create an automated script, which (I feel) needs to be able to map local processes of a certain program with certain remote hosts. The script will know which remote host and local program it will be looking for during the mapping. Essentially the goal is to programmatically pull which... (3 Replies)
Discussion started by: thmnetwork
3 Replies
8. Solaris
Is there a utility built into Solaris that will allow me to see console messages from a tty?
I've done a search and see that this is possible through software like ILOM, but I'm looking for a method to do this with built in utilities.
For example, on AIX, I can use swcons `tty` (6 Replies)
Discussion started by: makodarear
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Sun Solaris. I am working on the console, I have pulled the network cable out. I am in the process of changing the IP address and few others thing. But this message comes every few seconds.
SUNW,hme0: Link Down - cable problem?
SUNW,hme0: Link Down - cable problem?
It's very... (2 Replies)
Discussion started by: samnyc
2 Replies
10. Shell Programming and Scripting
Hi All,
Whenever I login to server via console, after providing username (root) it displays a banner message. I want to remove this message
Serverabc : root
Welcome to Server !!!
Password:
It is Centos 5.4 box.
I have checked /etc/issue and /etc/motd. It does not... (8 Replies)
Discussion started by: kalpeer
8 Replies
LEARN ABOUT OPENSOLARIS
last
last(1) User Commands last(1)
NAME
last - display login and logout information about users and terminals
SYNOPSIS
last [-a] [-n number | -number] [-f filename]
[name | tty]...
DESCRIPTION
The last command looks in the /var/adm/wtmpx file, which records all logins and logouts, for information about a user, a terminal, or any
group of users and terminals. Arguments specify names of users or terminals of interest. If multiple arguments are given, the information
applicable to any of the arguments is printed. For example, last root console lists all of root's sessions, as well as all sessions on the
console terminal. last displays the sessions of the specified users and terminals, most recent first, indicating the times at which the
session began, the duration of the session, and the terminal on which the session took place. last also indicates whether the session is
continuing or was cut short by a reboot.
The pseudo-user reboot logs in when the system is shutdown and when it reboots. Thus,
last reboot
gives an approximate record of when the operating system instance was shutdown and when it rebooted. This can be used to calculate the
availability of the operating system over time.
last with no arguments displays a record of all logins and logouts, in reverse order.
If last is interrupted, it indicates how far the search has progressed in /var/adm/wtmpx. If interrupted with a quit signal (generated by a
CTRL-), last indicates how far the search has progressed, and then continues the search.
OPTIONS
The following options are supported:
-a Displays the hostname in the last column.
-f filename Uses filename as the name of the accounting file instead of /var/adm/wtmpx.
-n number|-number Limits the number of entries displayed to that specified by number. These options are identical; the -number
option is provided as a transition tool only and is removed in future releases.
ENVIRONMENT VARIABLES
Date and time format is based on locale specified by the LC_ALL, LC_TIME, or LANG environments, in that order of priority.
FILES
/var/adm/wtmpx accounting file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
utmpx(4), attributes(5)
SunOS 5.11 24 Jul 2004 last(1)