UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Our Sponsors


Latest Postings
My friend NEEDS your HELP!
by Gizmo
11/26/08 12:21 AM
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Topic Options
Rate This Topic
#16947 - 06/05/03 10:51 AM Messaging all users
spectre Offline
Junior Member

Registered: 03/05/02
Posts: 56
Loc: 192.168.128.80
Is there a command that I could use, as root, to message all the users connected to my system? I know that if you are going to perform a shutdown (shutdown -r now message), you can message all the users telling them "hey, I am going to shutdown now". But I simply just want to be able to send a message to everyone that says "hey, I am going to turn off the internet in 15 minutes".

Yeah. I searched google, but it was all trash. Any help? Thanks.
_________________________
http://www.javaspot.net

Top
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#16948 - 06/05/03 04:25 PM Re: Messaging all users
sinetific Offline
nobody

Registered: 03/02/02
Posts: 815
Loc: Ann Arbor
I forget how to send messages to all users

$wall or $/etc/wall (send a message to all users online)

$write user [tty] (send messge to a specific user)

$talk user [tty] (same as write)

$mesg y or n (turns messaging on or off for your user)

$who (displays who is logged on to what tty)

there are probably some more ways these are all i could think of.

Top
#16949 - 06/06/03 05:26 PM Re: Messaging all users
pergesu Offline
Stoner Thugsta

Registered: 03/14/02
Posts: 1134
Loc: Pimpin the Colorizzle
Quote:

[cammie:~] pergesu% man wall
WALL(1) System General Commands Manual WALL(1)

NAME
wall - write a message to users

SYNOPSIS
wall [-g group] [file]

DESCRIPTION
Wall displays the contents of file or, by default, its standard input, on
the terminals of all currently logged in users.

Only the super-user can write on the terminals of users who have chosen
to deny messages or are using a program which automatically denies mes-
sages.

-g Send messages to users in this group. This option may be speci-
fied multiple times, and any user in any of the specified groups
will receive the message.

SEE ALSO
mesg(1), talk(1), write(1), shutdown(8)

HISTORY
A wall command appeared in Version 7 AT&T UNIX.

4th Berkeley Distribution June 6, 1993 4th Berkeley Distribution
I didn't get it to work though. Another option is writing a simple perl or shell script, that does "who", gets and parses the output, and iterates through the users and sends them messages. I don't know Perl, so I can't write it. But I'm sure it wouldn't be hard at all.

Top
#16950 - 06/06/03 05:36 PM Re: Messaging all users
Infinite Global Moderator Offline
Living The Dream

Registered: 03/09/02
Posts: 1039
Loc: Canada eh
works fine for me.

Screenshot

I'm just to retarded to remember the -g before I specify a group to send to

Infinite

Top
#16951 - 06/06/03 08:53 PM Re: Messaging all users
pergesu Offline
Stoner Thugsta

Registered: 03/14/02
Posts: 1134
Loc: Pimpin the Colorizzle
I got it too. On OS X you're supposed to specify a file on the command line. If you want it from the standard input, just hit enter, then type in all the text on one or several new lines, and hit ctrl+d.

Top
#16952 - 06/07/03 12:56 PM Re: Messaging all users
spectre Offline
Junior Member

Registered: 03/05/02
Posts: 56
Loc: 192.168.128.80
Tahnks for the info. I couldn't figure out for the life of me on how to do it. This works perfectly.
_________________________
http://www.javaspot.net

Top



Moderator:  Infinite 
Featured Member
Registered: 02/24/08
Posts: 12
Forum Stats
6889 Members
44 Forums
11026 Topics
45805 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6958
UGN Security 4076
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
lucky vin, prEttyNDistress, AndrewKlilly, border, f4k3m3
6889 Registered Users
Who's Online
0 registered (), 15 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 26, 2008
by Gizmo
11/28/08 03:39 AM
Happy Holidays!
by Gizmo
11/27/08 09:09 AM
New Mailing
by Gizmo
11/24/08 01:30 PM
A special update...
by Gizmo
11/24/08 01:10 PM
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!