The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Shoots for Big League of Servers - Wall Street Journal iBot UNIX and Linux RSS News 0 06-19-2007 01:30 AM
Cron wall message problem tt155 UNIX for Advanced & Expert Users 2 07-07-2005 05:21 AM
using the wall or write cmd simon2000 Shell Programming and Scripting 2 06-30-2003 01:36 PM
wall and rwall commands AMisledDrummer UNIX for Dummies Questions & Answers 1 01-18-2002 11:05 AM
wall commands nascar.fan UNIX for Dummies Questions & Answers 1 08-01-2001 10:58 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2002
djatwork djatwork is offline
Registered User
  
 

Join Date: Sep 2001
Location: Portland, Oregon USA
Posts: 24
wall

is there a command to send all terminals a message. i tired wall, but it only sends the message to who ever is logged in at a terminal. i need a command to send to every terminal no matter if someone is logged in or not.

Thanks!

-The DJ
  #2 (permalink)  
Old 01-31-2002
sshokunbi sshokunbi is offline
Registered User
  
 

Join Date: Jun 2001
Location: Los Angeles
Posts: 12
Wall

I don't know if you could send wall messages to 'dead' terminals. But I know you could use 'mail' to send messages to all users, either logged on or not.

Sola
  #3 (permalink)  
Old 01-31-2002
djatwork djatwork is offline
Registered User
  
 

Join Date: Sep 2001
Location: Portland, Oregon USA
Posts: 24
'mail' just sends an email to everyone, right? maybe i explaned it a little weird:

what i am trying to do is send every dummy terminal a message when i want them to log off the system. when a user is logged in, they recieve the message, but if no one is logged in at that terminal ,nothing is displayed on the screen.

hope this helps explain it a little better



-djatwork
  #4 (permalink)  
Old 01-31-2002
sshokunbi sshokunbi is offline
Registered User
  
 

Join Date: Jun 2001
Location: Los Angeles
Posts: 12
(I guessed as much that that is what you want). You may not worry about terminals that are not logged on since you want them logged off.

However, if you could write a small 'cron' message that would be executing the time you want users logged off, it may solve a bit, but a terminal has to logg on to receive the message allthesame.

Sola
  #5 (permalink)  
Old 01-31-2002
djatwork djatwork is offline
Registered User
  
 

Join Date: Sep 2001
Location: Portland, Oregon USA
Posts: 24
thats what i was afraid of. see what the whole point of this is, is that i wanted to write a message to users to stay logged off the system until a predetermined time. so, lets say i am rebuilding a index for a database and i want everyone to stay off the system until 10:00, the message would be on the screen. but, when i use 'wall' it does not show up, just the login screen.




-djatwork
  #6 (permalink)  
Old 01-31-2002
wizard wizard is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 60
You could always write a script to echo to the tty devices. The device names depend on the OS you're running, but they should be something like /dev/ttya, /dev/ttyb, etc.

i.e.

echo "Please logoff the system until 5pm." > /dev/ttya
  #7 (permalink)  
Old 02-01-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I would do it the way wizard suggests...
First, I would make a list of all terminal devices, then read from that list and echo a message:
Code:
 # cat term-list
/dev/tty2
/dev/tty3
/dev/tty4
 #
 # cat send_message.sh
#!/usr/bin/sh
for each in `cat term-list`
do
echo "\n\n\n\n\tPlease log out until 10:00 PM" >>$each
echo "I am currently rebuilding the database" >>$each
done
 #
You might want to leave your terminal out of the list, do you're screen doesn't get interrupted, and maybe also send out a wall message to everyone logged in first, so their terminal doesn't get screwed up right before they have to log out.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0