disable background messages


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers disable background messages
# 1  
Old 05-16-2002
disable background messages

Hi!!,
is there any way to stop background processes from writting onto the terminal window??

I have opened a session into a server1. From this server1, I rlogin to Server2. Now all the "wall" messages of server1 are appearing on myscreen. Any way to stop "wall" messages coming from server1???

Thanks in advance..

Smilie
# 2  
Old 05-16-2002
wall is not a background process. If wall is being run as root, no you cannot stop the messages from appearing. The concept of wall is that it should be used only when a message is so important that all users must see it.

Instead of opening a session to server1 and then doing a rlogin to server2, just open a session to server2 directly.
# 3  
Old 05-16-2002
I am working in a scenario where everyone uses the same login for connecting to Server2. So, no one knows the password for this login on server2.

So, the only way of connecting to it is logging to a local Server1 and then "rlogin" to the server2 which has the entry for this common login in .rhosts file.

i have tried to use "stty -tostop" to stop a background process
( not the wall ) to write to the stdout. but it doesnt help anyway..

Any ideas??



Smilie
# 4  
Old 05-16-2002
when you launch the background process, instead of this:
background_job &

try this:
background_job >/dev/null 2>&1 &

This assumes that use are using sh, ksh, bash, or another shell like that. And it's not an absolute fix, the job could still open /dev/tty.

Using "at" or "cron" to run the job would be an absolute fix since then the job would be unable to open /dev/tty. But such a job can no longer truely be called a "background job", so I guess that's cheating.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

SSL/TLS renegotiation DoS -how to disable? Is it advisable to disable?

Hi all Expertise, I have following issue to solve, SSL / TLS Renegotiation DoS (low) 222.225.12.13 Ease of Exploitation Moderate Port 443/tcp Family Miscellaneous Following is the problem description:------------------ Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

2. Shell Programming and Scripting

Remove console messages of background programs

Hi all ! If I run Xterm in backgprund mode &, when it stops I get this annoying messages on console: Exit 15 xterm ... Exit 15 xterm ... How do can I remove this kind of ? Thanks ! (3 Replies)
Discussion started by: jerold
3 Replies

3. What is on Your Mind?

Should We Disable User Profile Visitor Messages?

I don't think the visitor message feature for user profiles are useful. We mostly get questions that should be in the main forums. Let's vote on it ! (5 Replies)
Discussion started by: Neo
5 Replies

4. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

5. Shell Programming and Scripting

printing messages on the screen when background process is going on!

hello all, In my script i have written some messages which should come in screen while some background process is going on.. Like for example: if i want to add 2 numbers a and b ...when the addition is going on in the background i should get "ADDING TWO NUMBERS>>PLEASE WAIT " message on... (3 Replies)
Discussion started by: smarty86
3 Replies

6. Solaris

How to disable SU right

Anyone know how to disable SU right for a particular user in Solaris 8 (4 Replies)
Discussion started by: civic2005
4 Replies

7. UNIX for Dummies Questions & Answers

disable su

i have this unix version "unix v/386" and i want to disable su kindly help me (2 Replies)
Discussion started by: sak900354
2 Replies

8. Shell Programming and Scripting

disable messages

hi.. I want to disable the messages that comes when USB device is inserted. I tried to do 2> /dev/null... again messages are coming to the screen.. Please help.. esham (3 Replies)
Discussion started by: esham
3 Replies

9. UNIX for Dummies Questions & Answers

Disable X

Im sure this is somthing easy to do but i just can not figure it out where and how would i take X out of the boot for hp ux 11 i looked in the man's and nothing so maybe sombody could throw me a bone... thanks BB (8 Replies)
Discussion started by: bbutler3295
8 Replies
Login or Register to Ask a Question