I 'm admin unix junior ,and I want write a script batch to log off all users
from the server ,but before ,send to them a message informe them to save
data because the session gonna close
Please some suggestion
Thanks foe your help
Please some suggestion
Thanks foe your help
>Please some suggestion
>Thanks foe your help
note: The init S should work on all modern unix systems with sysV style
init. It turns the system into single-user mode, killing all login processes
and shutting down networking.
If you just want to kill every interactive user process, you would have
to parse the output of ps, looking for processes owned by users and attached
to a tty. A good thing is to first send them the HUP signal, wait a few
seconds, then send the TERM signal, and after another short time, the KILL
signal.
See manpages: ps kill init wall nologin and sed, awk, grep and cut
HTH
Juergen
--
>Please some suggestion
1. How to kill user processes and log users off??
2. Telnet Help!
3. Remotely logging off a user...
4. Install on Dell PowerEdge 2550 - problem with PERC 3/Di
6. Help!! Modem doesn't work under Linux
7. Background process is killed when user logs off on AIX
10. log off user on exit of program
13. Logging off the user in a C program