Banner command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Banner command
# 1  
Old 07-17-2003
Question Banner command

Hey all,

I want to use the banner/echo command to write messages on different console windows.

I knew that before, but I completely forget how to do it ! I just remenber that /dev/pts/# is the number of the window. and it's useful.

It would be great if someone knows how to solve my problem.

david
# 2  
Old 07-17-2003
Don't know if this is what you need, but I think the command is write(1), not banner(1)

http://www.unidata.ucar.edu/cgi-bin/man-cgi?write+1
# 3  
Old 07-17-2003
Hi,

:)))))))
Code:
while true 
do
  for i in `w | tail +3 | grep pts | awk '{print $2}'`
  do
    echo "He pall, please log of asap !!! > ${i}"
  done
done

Regs David

added code tags for readability --oombera

Last edited by oombera; 02-18-2004 at 10:45 PM..
# 4  
Old 07-17-2003
Thanks, that's actually a possiblity !!

I just found the solution of my problem, the syntax to send a single message on an other terminal even if it's not yours is
$ banner hello >/dev/pts/#
where # is the number of the terminal.
# 5  
Old 07-17-2003
Lightbulb

I forget to say one thing,
To get the number of the terminal, use the who command.

long life for unix
david
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Banner command equivalent in Linux

Hi guys can i get banner equivalent command in linux. I am using Linux xcclx0619.target.com 2.6.18-308.11.1.el5xen #1 SMP Fri Jun 15 16:19:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (1 Reply)
Discussion started by: mohanalakshmi
1 Replies

2. UNIX for Dummies Questions & Answers

Need help with banner.

is there a way to reduce the size of the banner? banner -w ? TIA (8 Replies)
Discussion started by: budz26
8 Replies

3. Shell Programming and Scripting

Banner causes scp to fail from script but not command line.

Hi, We have an interesting issue which is similar to the one in this thread, but that never provided a full answer. - Ohh apparently I can't post URLs till I have 5 posts, sorry. We have a simple script that copies files from one shelf to the other. Both shelves have an ssh banner defined. ... (3 Replies)
Discussion started by: RECrerar
3 Replies

4. UNIX for Dummies Questions & Answers

UNIX Banner Command

Hi, I am logging in into an UNIX environment with my user id and password. I want to display my name there , each time I login into the environment, for which I can use the banner command. Which file should I add the banner command to , so that I will get the desired result? Regards,... (7 Replies)
Discussion started by: Kishore_1
7 Replies

5. Shell Programming and Scripting

regarding banner command

Iam a MCA student having some doubts about 1) different disk related commands 2) Banner command 3) Different file related commands 4) set eb (where it is used) (1 Reply)
Discussion started by: gururajbhat
1 Replies

6. Shell Programming and Scripting

doubt in banner command !!!

hello, I am using banner command in my shell.I used :- The problem is that the output is printed in 3 separate lines.I want to display it in a single line.If the size is not enough then at least 2 words should come in the same line. Can you tell me what is the option in banner that would help... (4 Replies)
Discussion started by: nsharath
4 Replies

7. Shell Programming and Scripting

banner:command not found

hi, When i execute banner command the output is being displayed as banner:command not found When ever i give yum install banner the output is Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do what... (8 Replies)
Discussion started by: prakashreddy
8 Replies

8. UNIX for Dummies Questions & Answers

banner command

can I use Banner command in Linux, if not, what is the similar command in linux then... (7 Replies)
Discussion started by: vasikaran
7 Replies

9. Linux

banner command

is there a similiar function to the solaris banner function in linux? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

10. UNIX for Dummies Questions & Answers

Banner

How can I display a message to the crt whenever someone logs on? They do not see a unix prompt. I need to easily update this also. (2 Replies)
Discussion started by: Beetlejuice
2 Replies
Login or Register to Ask a Question