Linux / UNIX Tech Support Forum
This is a discussion on modified Wallop within the Shell scripting forums, part of the Development/Scripting category; hey all,, am wondering if it is possible to do such a thing: a script.. which does its work like ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
wall command does the same thing..
__________________
Vivek Gite Linux Evangelist |
|
||||
|
I really don't see any point reinventing the wheels, but here is what you can try:
Code:
#!/bin/sh
message="This is a test message"
USERS=$(who | awk '{ print $1}' | uniq)
for u in $USERS; do echo "$message" | write $u; done
__________________
Vivek Gite Linux Evangelist |
|
||||
|
thanks nixcraft
there is term that scientists have been using it called "open-minded thinking",, its always better to know how things work in background besides foreground for a normal user (a Microsoft's user for example.) what makes sense to him is to look at nice GUI and and use programs easily without knowing what is going around and how things go between hardware and software,, and that's what makes me interested ,, Operating Systems give you the answer nixcraft to think behind and not to get enough with a simple/easy way. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script To Outputs File Permissions of Most Recently Modified File | glen_4455 | Shell scripting | 1 | 25-08-2008 02:39 PM |
| If file modified execute a script | karabaja | Shell scripting | 3 | 23-11-2006 02:39 AM |